diff --git a/components/boards/board-cards.tsx b/components/boards/board-cards.tsx index 8b61c72..e0b066d 100644 --- a/components/boards/board-cards.tsx +++ b/components/boards/board-cards.tsx @@ -13,7 +13,14 @@ import { getColorForIndex } from "@/lib/utils/colors"; import { format } from "date-fns"; import { DeleteBoardDialog } from "@/components/boards/delete-board-dialog"; -export function BoardCards({ teamBoards }: { teamBoards: Board[] | null }) { +export function BoardCards({ + teamBoards, + userRole, +}: { + teamBoards: Board[] | null; + userRole: string; +}) { + console.log(userRole); return (
{teamBoards ? ( @@ -34,11 +41,13 @@ export function BoardCards({ teamBoards }: { teamBoards: Board[] | null }) { /> {board.name} - + {userRole === "Admin" && ( + + )}

@@ -47,7 +56,7 @@ export function BoardCards({ teamBoards }: { teamBoards: Board[] | null }) {

- +