aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/groups/create/page.tsx
diff options
context:
space:
mode:
authorSebastien Castiel <sebastien@castiel.me>2023-12-07 16:44:01 -0500
committerSebastien Castiel <sebastien@castiel.me>2023-12-07 16:44:01 -0500
commit0b27f90fb76a2492c17a958b6dd807e6fbbf8030 (patch)
treebfc9c0e533eb28b43bcded9c53020dc15bca1955 /src/app/groups/create/page.tsx
parent6611e3a187e5398f686449938b7cf1ddbfcb5392 (diff)
Titles and navigation
Diffstat (limited to 'src/app/groups/create/page.tsx')
-rw-r--r--src/app/groups/create/page.tsx16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/app/groups/create/page.tsx b/src/app/groups/create/page.tsx
index 4f220d2..82047a5 100644
--- a/src/app/groups/create/page.tsx
+++ b/src/app/groups/create/page.tsx
@@ -1,9 +1,6 @@
import { GroupForm } from '@/components/group-form'
-import { Button } from '@/components/ui/button'
import { createGroup } from '@/lib/api'
import { groupFormSchema } from '@/lib/schemas'
-import { ChevronLeft } from 'lucide-react'
-import Link from 'next/link'
import { redirect } from 'next/navigation'
export default function CreateGroupPage() {
@@ -14,16 +11,5 @@ export default function CreateGroupPage() {
redirect(`/groups/${group.id}`)
}
- return (
- <main>
- <div className="mb-4">
- <Button variant="ghost" asChild>
- <Link href="/groups">
- <ChevronLeft className="w-4 h-4 mr-2" /> Back to recent groups
- </Link>
- </Button>
- </div>
- <GroupForm onSubmit={createGroupAction} />
- </main>
- )
+ return <GroupForm onSubmit={createGroupAction} />
}