mirror of
https://github.com/lucasrcsantana/story-generator.git
synced 2025-12-18 06:17:56 +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">
|
<nav className="p-4 space-y-1">
|
||||||
<NavLink
|
<NavLink
|
||||||
to="/aluno"
|
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}
|
onClick={handleNavigation}
|
||||||
className={({ isActive }) =>
|
className={({ isActive }) =>
|
||||||
`flex items-center gap-2 px-4 py-2 rounded-lg text-sm ${
|
`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>}
|
{!isCollapsed && <span>Minhas Histórias</span>}
|
||||||
</NavLink>
|
</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
|
{/* <NavLink
|
||||||
to="/aluno/conquistas"
|
to="/aluno/conquistas"
|
||||||
onClick={handleNavigation}
|
onClick={handleNavigation}
|
||||||
|
|||||||
@ -177,7 +177,7 @@ export const router = createBrowserRouter([
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
index: true,
|
index: true,
|
||||||
element: <StudentDashboardPage />,
|
element: <StudentStoriesPage />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'historias',
|
path: 'historias',
|
||||||
@ -200,6 +200,10 @@ export const router = createBrowserRouter([
|
|||||||
path: 'configuracoes',
|
path: 'configuracoes',
|
||||||
element: <StudentSettingsPage />,
|
element: <StudentSettingsPage />,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'painel',
|
||||||
|
element: <StudentDashboardPage />,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: 'conquistas',
|
path: 'conquistas',
|
||||||
element: <AchievementsPage />,
|
element: <AchievementsPage />,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user