Skip to content

Commit

Permalink
fix: rota page horario
Browse files Browse the repository at this point in the history
  • Loading branch information
ialexanderbrito committed Apr 11, 2022
1 parent 5a9c087 commit 418834a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/routes/PrivateRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Routes, Route } from 'react-router-dom';

import { Admin } from 'pages/Admin';
import { Home } from 'pages/Home';
import { Horarios } from 'pages/Horarios';
import { MyTicket } from 'pages/MyTicket';
import { NotFound } from 'pages/NotFound';
import { Profile } from 'pages/Profile';
Expand All @@ -20,7 +19,7 @@ export function PrivateRoutes() {
<Route path="/p/:id" element={<Schedule />} />
<Route path="/ticket/:id" element={<MyTicket />} />
<Route path="/reset-password" element={<ResetPassword />} />
<Route path="/horarios" element={<Horarios />} />
<Route path="/horarios" element={<NotFound />} />
{isAlexander ? <Route path="/admin" element={<Admin />} /> : null}
{isBarbeiro ? <Route path="/valida/:id" element={<NotFound />} /> : null}
<Route path="*" element={<NotFound />} />
Expand Down

0 comments on commit 418834a

Please sign in to comment.