Ability to archive groups when they’re settled up (#45)

* Settled up icon on group card

* remove logs

* archived groups

* remove settled up

* remove more settled up

* recent-group-list-card

* sortGroups

* archiveGroup

* unarchiveGroup

* clean up

* more clean up

* Prettier, fix TS errors, add titles

---------

Co-authored-by: Sebastien Castiel <sebastien@castiel.me>
This commit is contained in:
Brandon Eng
2024-01-16 22:41:46 +07:00
committed by GitHub
parent 1141501edb
commit 36cc4f1ef7
7 changed files with 336 additions and 176 deletions

View File

@@ -11,18 +11,19 @@ export const metadata: Metadata = {
export default async function GroupsPage() {
return (
<>
<div className="flex flex-col sm:flex-row sm:justify-between sm:items-center gap-4 items-start">
<div className="flex justify-between items-center gap-4">
<h1 className="font-bold text-2xl">
<Link href="/groups">Recently visited groups</Link>
<Link href="/groups">My groups</Link>
</h1>
<Button asChild>
<Button asChild size="icon">
<Link href="/groups/create">
<Plus className="w-4 h-4 mr-2" />
Create group
<Plus className="w-4 h-4" />
</Link>
</Button>
</div>
<RecentGroupList />
<div>
<RecentGroupList />
</div>
</>
)
}