diff --git a/client/src/components/features/meetings/meeting-card.tsx b/client/src/components/features/meetings/meeting-card.tsx index 7465dba..8f1b792 100644 --- a/client/src/components/features/meetings/meeting-card.tsx +++ b/client/src/components/features/meetings/meeting-card.tsx @@ -10,7 +10,7 @@ import { Button } from '@/components/ui/button'; import { Card, CardContent } from '@/components/ui/card'; import { Checkbox } from '@/components/ui/checkbox'; import { useProjects } from '@/contexts/project-state'; -import { cn } from '@/lib/utils'; + import { formatDuration, formatRelativeTime } from '@/lib/utils/format'; interface MeetingCardProps { @@ -41,34 +41,34 @@ export const MeetingCard = forwardRef(function
-
{ - e.preventDefault(); - e.stopPropagation(); - }} - onKeyDown={(e) => { - if (e.key === 'Enter' || e.key === ' ') { - e.preventDefault(); - e.stopPropagation(); - } - }} - > - onSelect?.(meeting.id, checked as boolean)} + {isSelectable && ( +
{ e.preventDefault(); e.stopPropagation(); }} - aria-label={`Select meeting: ${meeting.title}`} - /> -
+ onKeyDown={(e) => { + if (e.key === 'Enter' || e.key === ' ') { + e.preventDefault(); + e.stopPropagation(); + } + }} + > + onSelect?.(meeting.id, checked as boolean)} + onClick={(e) => { + e.preventDefault(); + e.stopPropagation(); + }} + aria-label={`Select meeting: ${meeting.title}`} + /> +
+ )}

{meeting.title}