aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/groups/page.tsx
diff options
context:
space:
mode:
authorSebastien Castiel <sebastien@castiel.me>2023-12-11 10:26:13 -0500
committerSebastien Castiel <sebastien@castiel.me>2023-12-11 10:26:13 -0500
commit69fa008ea4e1a167e6076a69869388bf012d24b1 (patch)
tree673fe0d20df27c59292bec8df38cff1bffd41947 /src/app/groups/page.tsx
parentc504a773384bdaeddf6080ce749ecd39e12b24e5 (diff)
Tiny adjustments
Diffstat (limited to 'src/app/groups/page.tsx')
-rw-r--r--src/app/groups/page.tsx12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/app/groups/page.tsx b/src/app/groups/page.tsx
index 0c46d99..4a0d286 100644
--- a/src/app/groups/page.tsx
+++ b/src/app/groups/page.tsx
@@ -1,6 +1,5 @@
import { RecentGroupList } from '@/app/groups/recent-group-list'
import { Button } from '@/components/ui/button'
-import { getGroups } from '@/lib/api'
import { Plus } from 'lucide-react'
import { Metadata } from 'next'
import Link from 'next/link'
@@ -10,13 +9,8 @@ export const metadata: Metadata = {
}
export default async function GroupsPage() {
- async function getGroupsAction(groupIds: string[]) {
- 'use server'
- return getGroups(groupIds)
- }
-
return (
- <main>
+ <>
<div className="flex flex-col sm:flex-row sm:justify-between sm:items-baseline mb-2">
<h1 className="font-bold text-2xl mb-4">
<Link href="/groups">Recently visited groups</Link>
@@ -28,7 +22,7 @@ export default async function GroupsPage() {
</Link>
</Button>
</div>
- <RecentGroupList getGroupsAction={getGroupsAction} />
- </main>
+ <RecentGroupList />
+ </>
)
}