Commit 8e53261 1 parent 05adff1 commit 8e53261 Copy full SHA for 8e53261
File tree 3 files changed +30
-2
lines changed
3 files changed +30
-2
lines changed Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+
3
+ const MainPage = ( ) => {
4
+ return < div > this is main page</ div > ;
5
+ } ;
6
+
7
+ export default MainPage ;
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+
3
+ const NicknamePage = ( ) => {
4
+ return < div > this is Nick name page</ div > ;
5
+ } ;
6
+
7
+ export default NicknamePage ;
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import { Layout } from './layout';
4
4
5
5
import GamePage from '@/pages/GamePage/GamePage' ;
6
6
import GameResultPage from '@/pages/GameResultPage/GameResultPage' ;
7
+ import MainPage from '@/pages/MainPage/MainPage' ;
8
+ import NicknamePage from '@/pages/NicknamePage/NicknamePage' ;
7
9
import RoundResultPage from '@/pages/RoundResultPage/RoundResultPage' ;
8
10
9
11
export const router = createBrowserRouter ( [
@@ -13,14 +15,26 @@ export const router = createBrowserRouter([
13
15
children : [
14
16
{
15
17
index : true ,
18
+ element : < MainPage /> ,
19
+ } ,
20
+ {
21
+ path : 'nickname' ,
22
+ element : < NicknamePage /> ,
23
+ } ,
24
+ {
25
+ path : 'ready' ,
26
+ element : < div > 게임 대기 화면</ div > ,
27
+ } ,
28
+ {
29
+ path : 'game/:roundId' ,
16
30
element : < GamePage /> ,
17
31
} ,
18
32
{
19
- path : 'round- result' ,
33
+ path : 'round/:roundId/ result' ,
20
34
element : < RoundResultPage /> ,
21
35
} ,
22
36
{
23
- path : 'game- result' ,
37
+ path : 'game/ result' ,
24
38
element : < GameResultPage /> ,
25
39
} ,
26
40
] ,
You can’t perform that action at this time.
0 commit comments