feat(slot blocking): add buttons to sidebar
This commit is contained in:
parent
016b4371c2
commit
ffd052da54
1 changed files with 21 additions and 5 deletions
|
@ -14,7 +14,7 @@ import {
|
||||||
SidebarMenuItem,
|
SidebarMenuItem,
|
||||||
} from '@/components/custom-ui/sidebar';
|
} from '@/components/custom-ui/sidebar';
|
||||||
|
|
||||||
import { ChevronDown } from 'lucide-react';
|
import { CalendarMinus, ChevronDown } from 'lucide-react';
|
||||||
import {
|
import {
|
||||||
Collapsible,
|
Collapsible,
|
||||||
CollapsibleContent,
|
CollapsibleContent,
|
||||||
|
@ -28,8 +28,8 @@ import Link from 'next/link';
|
||||||
import {
|
import {
|
||||||
Star,
|
Star,
|
||||||
CalendarDays,
|
CalendarDays,
|
||||||
User,
|
//User,
|
||||||
Users,
|
//Users,
|
||||||
CalendarClock,
|
CalendarClock,
|
||||||
CalendarPlus,
|
CalendarPlus,
|
||||||
} from 'lucide-react';
|
} from 'lucide-react';
|
||||||
|
@ -40,7 +40,7 @@ const items = [
|
||||||
url: '/home',
|
url: '/home',
|
||||||
icon: CalendarDays,
|
icon: CalendarDays,
|
||||||
},
|
},
|
||||||
{
|
/*{
|
||||||
title: 'Friends',
|
title: 'Friends',
|
||||||
url: '#',
|
url: '#',
|
||||||
icon: User,
|
icon: User,
|
||||||
|
@ -49,12 +49,17 @@ const items = [
|
||||||
title: 'Groups',
|
title: 'Groups',
|
||||||
url: '#',
|
url: '#',
|
||||||
icon: Users,
|
icon: Users,
|
||||||
},
|
},*/
|
||||||
{
|
{
|
||||||
title: 'Events',
|
title: 'Events',
|
||||||
url: '/events',
|
url: '/events',
|
||||||
icon: CalendarClock,
|
icon: CalendarClock,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: 'Blocked Slots',
|
||||||
|
url: '/blocked_slots',
|
||||||
|
icon: CalendarMinus,
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export function AppSidebar() {
|
export function AppSidebar() {
|
||||||
|
@ -112,6 +117,17 @@ export function AppSidebar() {
|
||||||
</SidebarGroupContent>
|
</SidebarGroupContent>
|
||||||
|
|
||||||
<SidebarFooter>
|
<SidebarFooter>
|
||||||
|
<SidebarMenuItem className='pl-[8px]'>
|
||||||
|
<Link
|
||||||
|
href='/blocked_slots/new'
|
||||||
|
className='flex items-center gap-2 text-xl font-label'
|
||||||
|
>
|
||||||
|
<CalendarPlus className='size-8' />
|
||||||
|
<span className='group-data-[collapsible=icon]:hidden text-nowrap whitespace-nowrap'>
|
||||||
|
New Blocked Slot
|
||||||
|
</span>
|
||||||
|
</Link>
|
||||||
|
</SidebarMenuItem>
|
||||||
<SidebarMenuItem className='pl-[8px]'>
|
<SidebarMenuItem className='pl-[8px]'>
|
||||||
<Link
|
<Link
|
||||||
href='/events/new'
|
href='/events/new'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue