fix: Ajustando menu lateral do aluno

This commit is contained in:
Lucas Santana 2025-02-04 10:11:08 -03:00
parent 821b6ca9ec
commit 9e3f7a7c31
2 changed files with 21 additions and 17 deletions

View File

@ -40,22 +40,6 @@ export function StudentDashboardLayout() {
<nav className="p-4 space-y-1">
<NavLink
to="/aluno"
end
onClick={handleNavigation}
className={({ isActive }) =>
`flex items-center gap-2 px-4 py-2 rounded-lg text-sm ${
isActive
? 'bg-purple-50 text-purple-700'
: 'text-gray-600 hover:bg-gray-50'
}`
}
>
<LayoutDashboard className="h-5 w-5" />
{!isCollapsed && <span>Início</span>}
</NavLink>
<NavLink
to="/aluno/historias"
onClick={handleNavigation}
className={({ isActive }) =>
`flex items-center gap-2 px-4 py-2 rounded-lg text-sm ${
@ -69,6 +53,22 @@ export function StudentDashboardLayout() {
{!isCollapsed && <span>Minhas Histórias</span>}
</NavLink>
<NavLink
to="/aluno/painel"
end
onClick={handleNavigation}
className={({ isActive }) =>
`flex items-center gap-2 px-4 py-2 rounded-lg text-sm ${
isActive
? 'bg-purple-50 text-purple-700'
: 'text-gray-600 hover:bg-gray-50'
}`
}
>
<LayoutDashboard className="h-5 w-5" />
{!isCollapsed && <span>Painel</span>}
</NavLink>
{/* <NavLink
to="/aluno/conquistas"
onClick={handleNavigation}

View File

@ -177,7 +177,7 @@ export const router = createBrowserRouter([
children: [
{
index: true,
element: <StudentDashboardPage />,
element: <StudentStoriesPage />,
},
{
path: 'historias',
@ -200,6 +200,10 @@ export const router = createBrowserRouter([
path: 'configuracoes',
element: <StudentSettingsPage />,
},
{
path: 'painel',
element: <StudentDashboardPage />,
},
{
path: 'conquistas',
element: <AchievementsPage />,