diff --git a/src/components/expense-form.tsx b/src/components/expense-form.tsx index 4182d25..3e0909b 100644 --- a/src/components/expense-form.tsx +++ b/src/components/expense-form.tsx @@ -29,6 +29,7 @@ import { } from '@/components/ui/select' import { getExpense, getGroup } from '@/lib/api' import { ExpenseFormValues, expenseFormSchema } from '@/lib/schemas' +import { cn } from '@/lib/utils' import { zodResolver } from '@hookform/resolvers/zod' import { useSearchParams } from 'next/navigation' import { useForm } from 'react-hook-form' @@ -84,12 +85,12 @@ export function ExpenseForm({ group, expense, onSubmit, onDelete }: Props) { {isCreate ? <>Create expense : <>Edit expense} - + ( - + Expense title - ( - - Paid by - - - Select the participant who paid the expense. - - - - )} - /> - ( - + Amount
{group.currency} @@ -177,47 +149,82 @@ export function ExpenseForm({ group, expense, onSubmit, onDelete }: Props) { )} /> + ( + + Paid by + + + Select the participant who paid the expense. + + + + )} + /> + + ( + + Split mode + + + + + Select how to split the expense. + + + )} + /> + ( - - ( - - Split mode - - - - - Select how to split the expense. - - - )} - /> - -
+ +
Paid for