-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
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,26 @@ | ||
import { Route, Routes } from 'react-router-dom'; | ||
import { Main } from '@/pages/Main'; | ||
import { Register } from '@/pages/Register'; | ||
import { AddChannel } from '@/pages/AddChannel'; | ||
import { UserRoute } from '@/pages/UserRoute'; | ||
import { DrawRoute } from '@/pages/DrawRoute'; | ||
import { HostView } from '@/pages/HostView'; | ||
import { GuestView } from '@/pages/GuestView'; | ||
|
||
const ChannelRoutes = () => ( | ||
<Routes> | ||
<Route path="host" element={<HostView />} /> | ||
<Route path="guest/:guestId" element={<GuestView />} /> | ||
</Routes> | ||
); | ||
|
||
export const App = () => ( | ||
<Routes> | ||
<Route path="/" element={<Main />} /> | ||
<Route path="/register" element={<Register />} /> | ||
<Route path="/add-channel" element={<AddChannel />} /> | ||
<Route path="/add-channel/:user" element={<UserRoute />} /> | ||
<Route path="/add-channel/:user/draw" element={<DrawRoute />} /> | ||
<Route path="/channel/:channelId/*" element={<ChannelRoutes />} /> | ||
</Routes> | ||
); |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export const AddChannel = () => <>Hello</>; |
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 @@ | ||
export const DrawRoute = () => <>Hello</>; |
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 @@ | ||
export const GuestView = () => <>Hello</>; |
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 @@ | ||
export const HostView = () => <>Hello</>; |
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 @@ | ||
export const Main = () => <>Hello</>; |
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 @@ | ||
export const Register = () => <>Hello</>; |
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 @@ | ||
export const UserRoute = () => <>Hello</>; |