Add "Configuración" page and update navigation to support new view

Introduced the `SettingsPage` component for managing application preferences with localStorage persistence. Updated navigation and dynamic header title logic to include the new "settings" view. Adjusted `App.js` to handle the new view state and display `SettingsPage`.
This commit is contained in:
2025-11-20 20:18:44 -04:00
parent a6065bcdb5
commit d9a763191f
2 changed files with 156 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ import RequestForm from './components/Requests/RequestForm';
import ScheduledPage from './components/Scheduled/ScheduledPage';
import NewRequestPage from './components/Requests/NewRequestPage';
import HistoryPage from './components/History/HistoryPage';
import SettingsPage from './components/Settings/SettingsPage';
function App() {
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
@@ -24,6 +25,8 @@ function App() {
? 'Nueva Solicitud'
: activeView === 'history'
? 'Historial'
: activeView === 'settings'
? 'Configuración'
: 'Dashboard';
return (
@@ -42,6 +45,8 @@ function App() {
<NewRequestPage />
) : activeView === 'history' ? (
<HistoryPage />
) : activeView === 'settings' ? (
<SettingsPage />
) : (
<section className="content-wrapper">
<DashboardCards />