diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 7a4ddbe..facafcc 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -11,10 +11,10 @@ name: ESLint on: push: - branches: [ "main" ] + branches: ['main'] pull_request: # The branches below must be a subset of the branches above - branches: [ "main" ] + branches: ['main'] schedule: - cron: '25 21 * * 1' @@ -54,4 +54,4 @@ jobs: uses: github/codeql-action/upload-sarif@v3 with: sarif_file: eslint-results.sarif - wait-for-processing: true \ No newline at end of file + wait-for-processing: true diff --git a/app/(platform)/(dashboard)/board/[boardId]/_components/card-item.tsx b/app/(platform)/(dashboard)/board/[boardId]/_components/card-item.tsx index 516e3ff..c8911f8 100644 --- a/app/(platform)/(dashboard)/board/[boardId]/_components/card-item.tsx +++ b/app/(platform)/(dashboard)/board/[boardId]/_components/card-item.tsx @@ -29,7 +29,9 @@ export const CardItem = ({ index, data }: CardItemProps) => { {data.title}
- {data?.dueDate ? 'Due: ' + format(data.dueDate, 'PP') : 'No Due Date'} + {data?.dueDate + ? 'Due: ' + format(data.dueDate, 'PP') + : 'No Due Date'}
)} diff --git a/components/ui/calendar.tsx b/components/ui/calendar.tsx index 2f02434..ed29c89 100644 --- a/components/ui/calendar.tsx +++ b/components/ui/calendar.tsx @@ -1,13 +1,13 @@ -"use client" +'use client'; -import * as React from "react" -import { ChevronLeft, ChevronRight } from "lucide-react" -import { DayPicker } from "react-day-picker" +import * as React from 'react'; +import { ChevronLeft, ChevronRight } from 'lucide-react'; +import { DayPicker } from 'react-day-picker'; -import { cn } from "@/lib/utils" -import { buttonVariants } from "@/components/ui/button" +import { cn } from '@/lib/utils'; +import { buttonVariants } from '@/components/ui/button'; -export type CalendarProps = React.ComponentProps +export type CalendarProps = React.ComponentProps; function Calendar({ className, @@ -18,49 +18,49 @@ function Calendar({ return ( , - IconRight: ({ ...props }) => , + IconLeft: ({ ...props }) => , + IconRight: ({ ...props }) => , }} {...props} /> - ) + ); } -Calendar.displayName = "Calendar" +Calendar.displayName = 'Calendar'; -export { Calendar } +export { Calendar }; diff --git a/components/ui/date-picker.tsx b/components/ui/date-picker.tsx index 2603669..6835f6b 100644 --- a/components/ui/date-picker.tsx +++ b/components/ui/date-picker.tsx @@ -69,7 +69,7 @@ export function DatePicker({ id: card.id, boardId, dueDate: date, - }) + }); setDate(date); }; diff --git a/liveblocks.config.ts b/liveblocks.config.ts index 8ff7237..dbdbace 100644 --- a/liveblocks.config.ts +++ b/liveblocks.config.ts @@ -1,6 +1,6 @@ -import { createClient } from "@liveblocks/client"; -import { createRoomContext, createLiveblocksContext } from "@liveblocks/react"; - +import { createClient } from '@liveblocks/client'; +import { createRoomContext, createLiveblocksContext } from '@liveblocks/react'; + const client = createClient({ publicApiKey: process.env.NEXT_PUBLIC_LIVEBLOCKS_PUBLIC_KEY!, throttle: 16, @@ -55,8 +55,10 @@ export const { useMarkThreadAsRead, useRoomNotificationSettings, useUpdateRoomNotificationSettings, - } -} = createRoomContext(client); + }, +} = createRoomContext( + client +); export const { suspense: { @@ -67,5 +69,5 @@ export const { useUnreadInboxNotificationsCount, useUser, useRoomInfo, - } + }, } = createLiveblocksContext(client);