Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Commit

Permalink
feat/meetings: hide delete button
Browse files Browse the repository at this point in the history
  • Loading branch information
Kayn017 committed Dec 15, 2023
1 parent bf23882 commit 3fc1390
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions src/components/meeting/MeetingCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,24 +72,27 @@ export function MeetingCard({
)}

{meeting?.status !== MeetingStatus.STARTED &&
<button
type="button"
className="btn hover:text-blue-500 p-2 transition rounded-full hover:bg-gray-400 hover:bg-opacity-20"
aria-label="Update meeting"
onClick={() => onEditMeeting?.(meeting)}
>
<Pen className="w-5 h-5" />
</button>
<>
<button
type="button"
className="btn hover:text-blue-500 p-2 transition rounded-full hover:bg-gray-400 hover:bg-opacity-20"
aria-label="Update meeting"
onClick={() => onEditMeeting?.(meeting)}
>
<Pen className="w-5 h-5" />
</button>
<button
type="button"
className="btn hover:text-red-500 p-2 transition rounded-full hover:bg-gray-400 hover:bg-opacity-20"
aria-label="Delete meeting"
onClick={() => onDeleteMeeting?.(meeting)}
>
<Trash2 className="w-5 h-5" />
</button>
</>
}

<button
type="button"
className="btn hover:text-red-500 p-2 transition rounded-full hover:bg-gray-400 hover:bg-opacity-20"
aria-label="Delete meeting"
onClick={() => onDeleteMeeting?.(meeting)}
>
<Trash2 className="w-5 h-5" />
</button>

</div>
</div>
)}
Expand Down

0 comments on commit 3fc1390

Please sign in to comment.