Commit 961f5d65 authored by Kim, Subin's avatar Kim, Subin
Browse files

중첩라우팅

parent 20c77560
...@@ -19,8 +19,11 @@ import Payment from "./pages/PaymentPage"; ...@@ -19,8 +19,11 @@ import Payment from "./pages/PaymentPage";
function App() { function App() {
return ( return (
<div className="" style={{ backgroundColor: "black" }}>
<AuthProvider> <AuthProvider>
<Router>
<Switch>
<Route path="/admin" component={AdminPage} />
<div style={{ backgroundColor: "black" }}>
<Router> <Router>
<SubNav /> <SubNav />
<Header /> <Header />
...@@ -36,11 +39,12 @@ function App() { ...@@ -36,11 +39,12 @@ function App() {
<Route path="/ticket" component={TicketingPage} /> <Route path="/ticket" component={TicketingPage} />
<Route path="/payment" component={Payment} /> <Route path="/payment" component={Payment} />
<Route path="/search" component={SearchPage} /> <Route path="/search" component={SearchPage} />
<Route path="/admin" component={AdminPage} />
</Switch> </Switch>
</Router> </Router>
</AuthProvider>
</div> </div>
</Switch>
</Router>
</AuthProvider>
); );
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment