-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[ Feat ] router 연결
- Loading branch information
Showing
35 changed files
with
73 additions
and
9 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,42 @@ | ||
import { RouterProvider, createBrowserRouter } from 'react-router-dom'; | ||
import App from './App'; | ||
import HomePage from './pages/home/Home'; | ||
import JuniorPromisePage from './pages/juniorPromise/JuniorPromise'; | ||
import JuniorOnboardingPath from './pages/onboarding/juniorOnboarding/JuniorOnboarding'; | ||
import SeniorOnboardingPage from './pages/onboarding/seniorOnboarding/SeniorOnboarding'; | ||
import SeniorProfilePage from './pages/seniorProfile/SeniorProfile'; | ||
|
||
const router = createBrowserRouter([ | ||
{ | ||
path: '/', | ||
element: <App />, | ||
children: [ | ||
{ | ||
index: true, | ||
element: <HomePage />, | ||
}, | ||
{ | ||
path: 'seniorOnboarding', | ||
element: <SeniorOnboardingPage />, | ||
}, | ||
{ | ||
path: 'juniorOnboarding', | ||
element: <JuniorOnboardingPath />, | ||
}, | ||
{ | ||
path: 'seniorProfile', | ||
element: <SeniorProfilePage />, | ||
}, | ||
{ | ||
path: 'juniorPromise', | ||
element: <JuniorPromisePage />, | ||
}, | ||
], | ||
}, | ||
]); | ||
|
||
const Router = () => { | ||
return <div>Router</div>; | ||
return <RouterProvider router={router} />; | ||
}; | ||
|
||
export default Router; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom/client'; | ||
import App from './App.tsx'; | ||
import Router from './Router.tsx'; | ||
|
||
ReactDOM.createRoot(document.getElementById('root')!).render(<App />); | ||
ReactDOM.createRoot(document.getElementById('root')!).render( | ||
<React.StrictMode> | ||
<Router /> | ||
</React.StrictMode>, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const HomePage = () => { | ||
return <div>Home</div>; | ||
}; | ||
|
||
export default HomePage; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const JuniorPromisePage = () => { | ||
return <div>JuniorPromise</div>; | ||
}; | ||
|
||
export default JuniorPromisePage; |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const JuniorOnboardingPath = () => { | ||
return <div>JuniorOnboarding</div>; | ||
}; | ||
|
||
export default JuniorOnboardingPath; |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const SeniorOnboardingPage = () => { | ||
return <div>SeniorOnboarding</div>; | ||
}; | ||
|
||
export default SeniorOnboardingPage; |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const SeniorProfilePage = () => { | ||
return <div>SeniorProfile</div>; | ||
}; | ||
|
||
export default SeniorProfilePage; |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.