Skip to content

Commit

Permalink
fix(groups): move buttons bar to the bottom of the group details card
Browse files Browse the repository at this point in the history
  • Loading branch information
nikensss committed Mar 31, 2024
1 parent 191dbee commit b518e05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/groups/[groupId]/group-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ export default async function GroupDetails({
<header className="bg-primary-900 my-0.5 mb-1.5 flex h-12 flex-col items-center justify-center rounded-md">
<h2 className="text-primary-200 text-lg font-bold first-letter:uppercase">Details</h2>
</header>
<main>
<main className="flex grow flex-col">
<p className="text-center text-lg font-bold first-letter:uppercase">{group.description}</p>
<p className="text-center text-lg">Members</p>
<div className="mb-2 flex flex-col gap-2">
{users.map((u) => {
return <UserBannerClient key={u.id} user={u} isSelf={u.id === user?.id} />;
})}
</div>
<div className="flex items-center justify-center gap-2">
<div className="mt-auto flex items-center justify-center gap-2">
<Button asChild variant="outline" className="w-full">
<Link href={`/groups/${group.id}/edit`}>Edit</Link>
</Button>
Expand Down

0 comments on commit b518e05

Please sign in to comment.