Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
butter-studio
Commits
961f5d65
Commit
961f5d65
authored
Jul 28, 2021
by
Kim, Subin
Browse files
중첩라우팅
parent
20c77560
Changes
1
Hide whitespace changes
Inline
Side-by-side
client/src/App.js
View file @
961f5d65
...
@@ -19,28 +19,32 @@ import Payment from "./pages/PaymentPage";
...
@@ -19,28 +19,32 @@ import Payment from "./pages/PaymentPage";
function
App
()
{
function
App
()
{
return
(
return
(
<
div
className
=
""
style
=
{{
backgroundColor
:
"
black
"
}}
>
<
AuthProvider
>
<
AuthProvider
>
<
Router
>
<
Router
>
<
Switch
>
<
SubNav
/>
<
Route
path
=
"
/admin
"
component
=
{
AdminPage
}
/
>
<
Header
/>
<
div
style
=
{{
backgroundColor
:
"
black
"
}}
>
<
MainNav
/>
<
Router
>
<
Switch
>
<
SubNav
/>
<
Route
exact
path
=
"
/
"
component
=
{
HomePage
}
/
>
<
Header
/>
<
Route
path
=
"
/login
"
component
=
{
LoginPage
}
/
>
<
MainNav
/>
<
Route
path
=
"
/signup
"
component
=
{
SignupPage
}
/
>
<
Switch
>
<
Route
path
=
"
/movielist
"
component
=
{
MovieListPage
}
/
>
<
Route
exact
path
=
"
/
"
component
=
{
HomePage
}
/
>
<
Route
path
=
"
/movie/:movieId
"
component
=
{
MoviePage
}
/
>
<
Route
path
=
"
/login
"
component
=
{
LoginPage
}
/
>
<
Route
path
=
"
/mypage
"
component
=
{
MyPage
}
/
>
<
Route
path
=
"
/signup
"
component
=
{
SignupPage
}
/
>
<
Route
path
=
"
/ticket/seat
"
component
=
{
TicketingSeatPage
}
/
>
<
Route
path
=
"
/movielist
"
component
=
{
MovieListPage
}
/
>
<
Route
path
=
"
/ticket
"
component
=
{
TicketingPage
}
/
>
<
Route
path
=
"
/movie/:movieId
"
component
=
{
MoviePage
}
/
>
<
Route
path
=
"
/payment
"
component
=
{
Payment
}
/
>
<
Route
path
=
"
/mypage
"
component
=
{
MyPage
}
/
>
<
Route
path
=
"
/search
"
component
=
{
SearchPage
}
/
>
<
Route
path
=
"
/ticket/seat
"
component
=
{
TicketingSeatPage
}
/
>
<
Route
path
=
"
/admin
"
component
=
{
AdminPage
}
/
>
<
Route
path
=
"
/ticket
"
component
=
{
TicketingPage
}
/
>
<
/Switch
>
<
Route
path
=
"
/payment
"
component
=
{
Payment
}
/
>
<
/Router
>
<
Route
path
=
"
/search
"
component
=
{
SearchPage
}
/
>
<
/AuthProvider
>
<
/Switch
>
<
/div
>
<
/Router
>
<
/div
>
<
/Switch
>
<
/Router
>
<
/AuthProvider
>
);
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment