mirror of
https://github.com/spliit-app/spliit.git
synced 2026-02-25 08:56:13 +01:00
Tiny adjustments
This commit is contained in:
@@ -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 />
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user