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