[rewrite] Added shadcn ui to frontend and slightly tweaked backend

This commit is contained in:
Thastertyn committed 2025-02-20 15:16:06 +01:00
1 parent 4c8817e853
commit 6e9334ba0e
202 files changed
+19385 -15424

No files matched your search

@@ -0,0 +1,30 @@
import {
Sidebar,
SidebarContent,
SidebarFooter,
SidebarHeader,
SidebarRail,
} from '@/components/ui/sidebar'
import { NavGroup } from '@/components/layout/nav-group'
import { NavUser } from '@/components/layout/nav-user'
import { TeamSwitcher } from '@/components/layout/team-switcher'
import { sidebarData } from './data/sidebar-data'
export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
return (
<Sidebar collapsible='icon' variant='floating' {...props}>
<SidebarHeader>
<TeamSwitcher teams={sidebarData.teams} />
</SidebarHeader>
<SidebarContent>
{sidebarData.navGroups.map((props) => (
<NavGroup key={props.title} {...props} />
))}
</SidebarContent>
<SidebarFooter>
<NavUser user={sidebarData.user} />
</SidebarFooter>
<SidebarRail />
</Sidebar>
)
}