diff --git a/src/app/(main)/home/page.tsx b/src/app/(main)/home/page.tsx
index 70e7561..1cf8a90 100644
--- a/src/app/(main)/home/page.tsx
+++ b/src/app/(main)/home/page.tsx
@@ -8,7 +8,10 @@ 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 0077cf1..62142e9 100644
--- a/src/app/api/user/[user]/calendar/route.ts
+++ b/src/app/api/user/[user]/calendar/route.ts
@@ -219,7 +219,8 @@ 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 0f4a098..a8d6005 100644
--- a/src/components/calendar.tsx
+++ b/src/components/calendar.tsx
@@ -41,7 +41,13 @@ 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 }) => (
@@ -72,7 +78,13 @@ export default function Calendar({ userId, height }: { userId?: string; height:
);
}
-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'