added working ticket frontend

This commit is contained in:
QkoSad
2022-12-10 17:21:26 +02:00
parent 885cdfa7fe
commit 475f924381
7 changed files with 210 additions and 32 deletions
+5 -1
View File
@@ -7,7 +7,8 @@ import Home from "./pages/Home";
import Login from "./pages/Login";
import Register from "./pages/Register";
import NewTicket from "./pages/NewTicket";
import Tickets from "./pages/Ticket";
import Tickets from "./pages/Tickets";
import Ticket from "./pages/Ticket";
function App() {
return (
@@ -25,6 +26,9 @@ function App() {
<Route path="/tickets" element={<PrivateRoute />}>
<Route path="/tickets" element={<Tickets />} />
</Route>
<Route path="/ticket/:ticketId" element={<PrivateRoute />}>
<Route path="/ticket/:ticketId" element={<Ticket />} />
</Route>
</Routes>
</div>
</Router>