feat(slot blocking): add buttons to sidebar
This commit is contained in:
parent
b5a07b7bed
commit
2973545901
1 changed files with 21 additions and 5 deletions
|
@ -14,7 +14,7 @@ import {
|
|||
SidebarMenuItem,
|
||||
} from '@/components/custom-ui/sidebar';
|
||||
|
||||
import { ChevronDown } from 'lucide-react';
|
||||
import { CalendarMinus, ChevronDown } from 'lucide-react';
|
||||
import {
|
||||
Collapsible,
|
||||
CollapsibleContent,
|
||||
|
@ -28,8 +28,8 @@ import Link from 'next/link';
|
|||
import {
|
||||
Star,
|
||||
CalendarDays,
|
||||
User,
|
||||
Users,
|
||||
//User,
|
||||
//Users,
|
||||
CalendarClock,
|
||||
CalendarPlus,
|
||||
} from 'lucide-react';
|
||||
|
@ -40,7 +40,7 @@ const items = [
|
|||
url: '/home',
|
||||
icon: CalendarDays,
|
||||
},
|
||||
{
|
||||
/*{
|
||||
title: 'Friends',
|
||||
url: '#',
|
||||
icon: User,
|
||||
|
@ -49,12 +49,17 @@ const items = [
|
|||
title: 'Groups',
|
||||
url: '#',
|
||||
icon: Users,
|
||||
},
|
||||
},*/
|
||||
{
|
||||
title: 'Events',
|
||||
url: '/events',
|
||||
icon: CalendarClock,
|
||||
},
|
||||
{
|
||||
title: 'Blocked Slots',
|
||||
url: '/blocked_slots',
|
||||
icon: CalendarMinus,
|
||||
},
|
||||
];
|
||||
|
||||
export function AppSidebar() {
|
||||
|
@ -112,6 +117,17 @@ export function AppSidebar() {
|
|||
</SidebarGroupContent>
|
||||
|
||||
<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]'>
|
||||
<Link
|
||||
href='/events/new'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue