mirror of
https://github.com/spliit-app/spliit.git
synced 2026-02-28 02:16:12 +01:00
This commit is contained in:
@@ -191,7 +191,7 @@ function ReceiptDialogContent() {
|
|||||||
<Unknown />
|
<Unknown />
|
||||||
)
|
)
|
||||||
) : (
|
) : (
|
||||||
'' || '…'
|
''
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ import { calculateShare } from '@/lib/totals'
|
|||||||
import { cn } from '@/lib/utils'
|
import { cn } from '@/lib/utils'
|
||||||
import { AppRouterOutput } from '@/trpc/routers/_app'
|
import { AppRouterOutput } from '@/trpc/routers/_app'
|
||||||
import { zodResolver } from '@hookform/resolvers/zod'
|
import { zodResolver } from '@hookform/resolvers/zod'
|
||||||
|
import { RecurrenceRule } from '@prisma/client'
|
||||||
import { Save } from 'lucide-react'
|
import { Save } from 'lucide-react'
|
||||||
import { useTranslations } from 'next-intl'
|
import { useTranslations } from 'next-intl'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
@@ -54,7 +55,6 @@ import { match } from 'ts-pattern'
|
|||||||
import { DeletePopup } from '../../../../components/delete-popup'
|
import { DeletePopup } from '../../../../components/delete-popup'
|
||||||
import { extractCategoryFromTitle } from '../../../../components/expense-form-actions'
|
import { extractCategoryFromTitle } from '../../../../components/expense-form-actions'
|
||||||
import { Textarea } from '../../../../components/ui/textarea'
|
import { Textarea } from '../../../../components/ui/textarea'
|
||||||
import { RecurrenceRule } from '@prisma/client'
|
|
||||||
|
|
||||||
const enforceCurrencyPattern = (value: string) =>
|
const enforceCurrencyPattern = (value: string) =>
|
||||||
value
|
value
|
||||||
@@ -190,7 +190,7 @@ export function ExpenseForm({
|
|||||||
isReimbursement: expense.isReimbursement,
|
isReimbursement: expense.isReimbursement,
|
||||||
documents: expense.documents,
|
documents: expense.documents,
|
||||||
notes: expense.notes ?? '',
|
notes: expense.notes ?? '',
|
||||||
recurrenceRule: expense.recurrenceRule,
|
recurrenceRule: expense.recurrenceRule ?? undefined,
|
||||||
}
|
}
|
||||||
: searchParams.get('reimbursement')
|
: searchParams.get('reimbursement')
|
||||||
? {
|
? {
|
||||||
@@ -516,7 +516,7 @@ export function ExpenseForm({
|
|||||||
defaultValue={getSelectedRecurrenceRule(field)}
|
defaultValue={getSelectedRecurrenceRule(field)}
|
||||||
>
|
>
|
||||||
<SelectTrigger>
|
<SelectTrigger>
|
||||||
<SelectValue placeholder="NONE"/>
|
<SelectValue placeholder="NONE" />
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
<SelectItem value="NONE">
|
<SelectItem value="NONE">
|
||||||
|
|||||||
Reference in New Issue
Block a user