mirror of
https://github.com/spliit-app/spliit.git
synced 2026-02-21 23:16:13 +01:00
Titles and navigation
This commit is contained in:
@@ -22,7 +22,7 @@ import { Input } from '@/components/ui/input'
|
||||
import { getGroup } from '@/lib/api'
|
||||
import { GroupFormValues, groupFormSchema } from '@/lib/schemas'
|
||||
import { zodResolver } from '@hookform/resolvers/zod'
|
||||
import { Trash2 } from 'lucide-react'
|
||||
import { Save, Trash2 } from 'lucide-react'
|
||||
import { useFieldArray, useForm } from 'react-hook-form'
|
||||
|
||||
export type Props = {
|
||||
@@ -106,6 +106,7 @@ export function GroupForm({ group, onSubmit }: Props) {
|
||||
/>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
<Card className="mb-4">
|
||||
<CardHeader>
|
||||
<CardTitle>Participants</CardTitle>
|
||||
@@ -160,7 +161,12 @@ export function GroupForm({ group, onSubmit }: Props) {
|
||||
</CardFooter>
|
||||
</Card>
|
||||
|
||||
<SubmitButton loadingContent="Submitting…">Submit</SubmitButton>
|
||||
<SubmitButton
|
||||
size="lg"
|
||||
loadingContent={group ? 'Saving…' : 'Creating…'}
|
||||
>
|
||||
<Save className="w-4 h-4 mr-2" /> {group ? <>Save</> : <> Create</>}
|
||||
</SubmitButton>
|
||||
</form>
|
||||
</Form>
|
||||
)
|
||||
|
||||
@@ -6,7 +6,7 @@ export function ProgressBar() {
|
||||
<Next13ProgressBar
|
||||
height="2px"
|
||||
color="#64748b"
|
||||
options={{ showSpinner: true }}
|
||||
options={{ showSpinner: false }}
|
||||
showOnShallow
|
||||
/>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user