Skip to content

Commit 3c79b99

Browse files
committed
fix: 라우트 roundId 제거 #46
1 parent 3b091cd commit 3c79b99

File tree

2 files changed

+34
-3
lines changed

2 files changed

+34
-3
lines changed

frontend/src/router/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ export const router = createBrowserRouter([
2626
element: <div>게임 대기 화면</div>,
2727
},
2828
{
29-
path: 'game/:roundId',
29+
path: 'game',
3030
element: <GamePage />,
3131
},
3232
{
33-
path: 'round/:roundId/result',
33+
path: 'round/result',
3434
element: <RoundResultPage />,
3535
},
3636
{

frontend/src/utils/nickname.ts

+32-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,38 @@ export const createRandomNickname = () => {
3737
'명랑한',
3838
'흥미로운',
3939
];
40-
const nouns = ['마루', '썬데이', '프린', '이든', '포메', '타칸', '커찬'];
40+
const nouns = [
41+
'강아지',
42+
'고양이',
43+
'개구리',
44+
'딱다구리',
45+
'사자',
46+
'호랑이',
47+
'코끼리',
48+
'기린',
49+
'고래',
50+
'판다',
51+
'토끼',
52+
'햄스터',
53+
'다람쥐',
54+
'수달',
55+
'원숭이',
56+
'여우',
57+
'늑대',
58+
'말',
59+
'돼지',
60+
'소',
61+
'양',
62+
'염소',
63+
'치타',
64+
'타조',
65+
'참새',
66+
'비둘기',
67+
'까마귀',
68+
'공룡',
69+
'거북이',
70+
'독수리',
71+
];
4172

4273
const randomAdjective = adjectives[Math.floor(Math.random() * adjectives.length)];
4374
const randomNoun = nouns[Math.floor(Math.random() * nouns.length)];

0 commit comments

Comments
 (0)