From 77e28ee88a7925a765e668db282a464c315ca2e9 Mon Sep 17 00:00:00 2001 From: CANCI0 Date: Tue, 12 Mar 2024 20:19:42 +0100 Subject: [PATCH 1/6] =?UTF-8?q?Se=20ha=20a=C3=B1adido=20pesta=C3=B1a=20de?= =?UTF-8?q?=20configuraci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/src/App.js | 2 + webapp/src/components/Nav/Nav.js | 6 +- .../src/components/PreguntasConceCiudades.js | 32 ----- webapp/src/pages/Config/Config.css | 14 ++ webapp/src/pages/Config/Config.js | 53 ++++++++ .../pages/ConoceCiudades/ConoceCiudades.css | 78 ----------- .../pages/ConoceCiudades/ConoceCiudades.js | 125 ------------------ 7 files changed, 74 insertions(+), 236 deletions(-) delete mode 100644 webapp/src/components/PreguntasConceCiudades.js create mode 100644 webapp/src/pages/Config/Config.css create mode 100644 webapp/src/pages/Config/Config.js delete mode 100644 webapp/src/pages/ConoceCiudades/ConoceCiudades.css delete mode 100644 webapp/src/pages/ConoceCiudades/ConoceCiudades.js diff --git a/webapp/src/App.js b/webapp/src/App.js index 0ef18680..dee6ef63 100644 --- a/webapp/src/App.js +++ b/webapp/src/App.js @@ -9,6 +9,7 @@ import "./App.css"; import { BrowserRouter, Routes, Route } from "react-router-dom"; import { ProtectedRoute } from "./routers/ProtectedRoute.js"; import Sobre from "./pages/Sobre/Sobre.js"; +import Config from "./pages/Config/Config.js"; function App() { return ( @@ -25,6 +26,7 @@ function App() { } /> } /> } /> + } /> {/* Ruta por defecto */} diff --git a/webapp/src/components/Nav/Nav.js b/webapp/src/components/Nav/Nav.js index a44a6b74..e0bd9f0c 100644 --- a/webapp/src/components/Nav/Nav.js +++ b/webapp/src/components/Nav/Nav.js @@ -16,6 +16,10 @@ const Nav = () => { setIsDarkTheme((prev) => !prev); }; + const handleConfig = () => { + navigate("/config"); + } + const Logout = () => { localStorage.removeItem("token"); navigate("/"); @@ -40,7 +44,7 @@ const Nav = () => { - + +