Add "Historial" page and update navigation to support new view

Introduced the `HistoryPage` component for viewing request history. Updated navigation and dynamic header title logic to include the new "history" view. Adjusted `App.js` to handle the new view state and display `HistoryPage`.
This commit is contained in:
2025-11-20 20:13:25 -04:00
parent 6ec99a729f
commit a6065bcdb5
2 changed files with 32 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ import RequestTable from './components/Requests/RequestTable';
import RequestForm from './components/Requests/RequestForm';
import ScheduledPage from './components/Scheduled/ScheduledPage';
import NewRequestPage from './components/Requests/NewRequestPage';
import HistoryPage from './components/History/HistoryPage';
function App() {
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
@@ -21,6 +22,8 @@ function App() {
? 'Solicitudes Programadas'
: activeView === 'create'
? 'Nueva Solicitud'
: activeView === 'history'
? 'Historial'
: 'Dashboard';
return (
@@ -37,6 +40,8 @@ function App() {
<ScheduledPage />
) : activeView === 'create' ? (
<NewRequestPage />
) : activeView === 'history' ? (
<HistoryPage />
) : (
<section className="content-wrapper">
<DashboardCards />