feat: show creator on board page (#440)

This commit is contained in:
Meier Lukas
2024-05-05 22:20:51 +02:00
committed by GitHub
parent 7b31684c84
commit 5d30301b95

View File

@@ -18,6 +18,7 @@ import { IconDotsVertical, IconLock, IconWorld } from "@tabler/icons-react";
import type { RouterOutputs } from "@homarr/api";
import { api } from "@homarr/api/server";
import { getScopedI18n } from "@homarr/translation/server";
import { UserAvatar } from "@homarr/ui";
import { getBoardPermissions } from "~/components/board/permissions/server";
import { BoardCardMenuDropdown } from "./_components/board-card-menu-dropdown";
@@ -37,7 +38,7 @@ export default async function ManageBoardsPage() {
<Grid>
{boards.map((board) => (
<GridCol span={{ xs: 12, md: 4 }} key={board.id}>
<GridCol span={{ base: 12, md: 6, xl: 4 }} key={board.id}>
<BoardCard board={board} />
</GridCol>
))}
@@ -68,6 +69,13 @@ const BoardCard = async ({ board }: BoardCardProps) => {
{board.name}
</Text>
</Group>
{board.creator && (
<Group gap="xs">
<UserAvatar user={board.creator} size="sm" />
<Text>{board.creator?.name}</Text>
</Group>
)}
</Group>
</CardSection>