diff --git a/src/app/(main)/home/page.tsx b/src/app/(main)/home/page.tsx index 1cf8a90..70e7561 100644 --- a/src/app/(main)/home/page.tsx +++ b/src/app/(main)/home/page.tsx @@ -8,10 +8,7 @@ export default function Home() { return (
- +
); } diff --git a/src/app/api/user/[user]/calendar/route.ts b/src/app/api/user/[user]/calendar/route.ts index 62142e9..0077cf1 100644 --- a/src/app/api/user/[user]/calendar/route.ts +++ b/src/app/api/user/[user]/calendar/route.ts @@ -219,8 +219,7 @@ export const GET = auth(async function GET(req, { params }) { success: true, calendar: calendar.filter( (event, index, self) => - self.findIndex((e) => e.id === event.id && e.type === event.type) === - index, + self.findIndex((e) => e.id === event.id && e.type === event.type) === index, ), }); }); diff --git a/src/components/calendar.tsx b/src/components/calendar.tsx index a8d6005..0f4a098 100644 --- a/src/components/calendar.tsx +++ b/src/components/calendar.tsx @@ -41,13 +41,7 @@ const DaDRBCalendar = withDragAndDrop< const localizer = momentLocalizer(moment); -export default function Calendar({ - userId, - height, -}: { - userId?: string; - height: string; -}) { +export default function Calendar({ userId, height }: { userId?: string; height: string }) { return ( {({ reset }) => ( @@ -78,13 +72,7 @@ export default function Calendar({ ); } -function CalendarWithUserEvents({ - userId, - height, -}: { - userId: string; - height: string; -}) { +function CalendarWithUserEvents({ userId, height }: { userId: string; height: string }) { const sesstion = useSession(); const [currentView, setCurrentView] = React.useState< 'month' | 'week' | 'day' | 'agenda' | 'work_week'