aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/groups/recent-groups-page.tsx
diff options
context:
space:
mode:
authorSebastien Castiel <sebastien@castiel.me>2024-01-24 11:12:55 -0500
committerSebastien Castiel <sebastien@castiel.me>2024-01-24 11:12:55 -0500
commit545cf75e9993f4dbc0653512d01b198f111998bf (patch)
tree352c01040e4941a76b9ade71c5e65a80671ebcf1 /src/app/groups/recent-groups-page.tsx
parent7956156d705297ba7c372577bb19c09517bbd444 (diff)
Join group by URL (Closes #55)
Diffstat (limited to 'src/app/groups/recent-groups-page.tsx')
-rw-r--r--src/app/groups/recent-groups-page.tsx29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/app/groups/recent-groups-page.tsx b/src/app/groups/recent-groups-page.tsx
new file mode 100644
index 0000000..36874b0
--- /dev/null
+++ b/src/app/groups/recent-groups-page.tsx
@@ -0,0 +1,29 @@
+'use client'
+import { AddGroupByUrlButton } from '@/app/groups/add-group-by-url-button'
+import { RecentGroupList } from '@/app/groups/recent-group-list'
+import { Button } from '@/components/ui/button'
+import Link from 'next/link'
+
+export function RecentGroupsPage() {
+ return (
+ <>
+ <div className="flex flex-col sm:flex-row sm:items-center justify-between gap-2">
+ <h1 className="font-bold text-2xl flex-1">
+ <Link href="/groups">My groups</Link>
+ </h1>
+ <div className="flex gap-2">
+ <AddGroupByUrlButton reload={() => {}} />
+ <Button asChild>
+ <Link href="/groups/create">
+ {/* <Plus className="w-4 h-4 mr-2" /> */}
+ <>Create</>
+ </Link>
+ </Button>
+ </div>
+ </div>
+ <div>
+ <RecentGroupList />
+ </div>
+ </>
+ )
+}