mirror of
https://github.com/lucasrcsantana/story-generator.git
synced 2025-12-16 21:37:51 +00:00
fix: Ajustando menu lateral do aluno
This commit is contained in:
parent
821b6ca9ec
commit
9e3f7a7c31
@ -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}
|
||||
|
||||
@ -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 />,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user