Add ProfilePage component and integrate with navigation and sidebar

Introduced `ProfilePage` to display user profile details, including name, email, and role. Updated navigation logic in `App.js` to support the new "profile" view and added click-to-navigate functionality in the sidebar user section. Enhanced sidebar user actions with improved logout interactions.
This commit is contained in:
2025-11-22 22:31:21 -04:00
parent 15c5c60591
commit 38945d6336
3 changed files with 78 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ import NewRequestPage from './components/Requests/NewRequestPage';
import HistoryPage from './components/History/HistoryPage';
import SettingsPage from './components/Settings/SettingsPage';
import HelpPage from './components/Help/HelpPage';
import ProfilePage from './components/Profile/ProfilePage';
function App() {
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
@@ -63,6 +64,8 @@ function App() {
? 'Configuración'
: activeView === 'help'
? 'Ayuda'
: activeView === 'profile'
? 'Perfil'
: 'Dashboard';
return (
@@ -85,6 +88,8 @@ function App() {
<SettingsPage />
) : activeView === 'help' ? (
<HelpPage />
) : activeView === 'profile' ? (
<ProfilePage />
) : (
<section className="content-wrapper">
<DashboardCards />