diff --git a/src/App.jsx b/src/App.jsx
index b3535d9..12ee439 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -1,33 +1,45 @@
-import React from 'react';
-import { RouterProvider, createBrowserRouter } from 'react-router-dom';
-import { Provider } from 'react-redux';
-import { ToastContainer } from 'react-toastify';
-import 'react-toastify/dist/ReactToastify.css';
-import PrivateRoute from './components/PrivateRoute';
-import store from './auth/store';
-import Home from './pages/Home';
-import HomePage from './pages/HomePage';
-import MainLayout from './layouts/MainLayout';
-import Login from './pages/Login';
-import Cadastro from './pages/Cadastro';
-import VerHorarios from './pages/VerHorarios';
-import Perfil from './pages/Perfil';
-import Cartao from './pages/Cartao';
+import React from "react";
+import { RouterProvider, createBrowserRouter } from "react-router-dom";
+import { Provider } from "react-redux";
+import { ToastContainer } from "react-toastify";
+import "react-toastify/dist/ReactToastify.css";
+import PrivateRoute from "./components/PrivateRoute";
+import store from "./auth/store";
+import Home from "./pages/Home";
+import HomePage from "./pages/HomePage";
+import MainLayout from "./layouts/MainLayout";
+import Login from "./pages/Login";
+import Cadastro from "./pages/Cadastro";
+import VerHorarios from "./pages/VerHorarios";
+import Perfil from "./pages/Perfil";
+import Cartao from "./pages/Cartao";
+import SolicitarCartao from "./pages/SolicitarCartao";
+import Historico from "./pages/Historico";
+import GerenciarNotificacao from "./pages/GerenciarNotificacao";
+import GerenciarSolicitacao from "./pages/GerenciarSolicitacao";
const router = createBrowserRouter([
{
- path: '/',
+ path: "/",
element: ,
children: [
- { path: '/', element: },
- { path: '/login', element: },
- { path: '/cadastro', element: },
- {path: '', element: , children: [
- { path: '/home', element: },
- { path: '/perfil', element: },
- { path: '/verhorarios', element: },
- { path: '/cartao', element: },
- ]},
+ { path: "/", element: },
+ { path: "/login", element: },
+ { path: "/cadastro", element: },
+ {
+ path: "",
+ element: ,
+ children: [
+ { path: "/home", element: },
+ { path: "/perfil", element: },
+ { path: "/verhorarios", element: },
+ { path: "/cartao", element: },
+ { path: "/solicitarcartao", element: },
+ { path: "/historico", element: },
+ { path: "/gerenciarnotificacao", element: },
+ { path: "/gerenciarsolicitacao", element: },
+ ],
+ },
],
},
]);
@@ -35,12 +47,12 @@ const router = createBrowserRouter([
const App = () => {
return (
<>
-
-
-
-
+
+
+
+
>
- )
+ );
};
export default App;
diff --git a/src/pages/GerenciarNotificacao.jsx b/src/pages/GerenciarNotificacao.jsx
index 3fa37c9..984345b 100644
--- a/src/pages/GerenciarNotificacao.jsx
+++ b/src/pages/GerenciarNotificacao.jsx
@@ -43,7 +43,6 @@ const GerenciarNotificacoes = () => {
idUser: userInfo.data.id,
texto,
dataHora: formattedDataHora, // Envia a dataHora gerada
- isRead: false,
});
setTexto("");
fetchNotificacoes(); // Atualiza a lista de notificações