mirror of https://github.com/franjsco/tick3t
fix: routes
This commit is contained in:
parent
c948bd329c
commit
26d4dd7327
|
@ -23,9 +23,7 @@ class Routes extends Component {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<Router>
|
<Router>
|
||||||
{this.props.children}
|
|
||||||
<Container>
|
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route path="/" exact component={Home} />
|
<Route path="/" exact component={Home} />
|
||||||
<Route path="/create" component={CreateTicket} />
|
<Route path="/create" component={CreateTicket} />
|
||||||
|
@ -37,7 +35,7 @@ class Routes extends Component {
|
||||||
<Route path="/admin/ticket/:ticketId" component={TicketWork} />
|
<Route path="/admin/ticket/:ticketId" component={TicketWork} />
|
||||||
<Route component={PageNotFound} />
|
<Route component={PageNotFound} />
|
||||||
</Switch>
|
</Switch>
|
||||||
</Container>
|
{this.props.children}
|
||||||
</Router>
|
</Router>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue