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:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user