fix build

This commit is contained in:
2026-04-23 15:15:21 +03:00
parent c0f78c6e18
commit 564e9e510f
13 changed files with 85 additions and 17 deletions
@@ -2,6 +2,7 @@ import DashboardPage from '@/base/components/layout/dashboard/dashboard-page'
import { ExpenseGeneralInfo } from '@/modules/expenses/expense-general-info'
import { ExpenseItemsSection } from '@/modules/expenses/expense-items-section'
import { ExpensePaymentsSection } from '@/modules/expenses/expense-payments-section'
import { formatTaxLabel } from '@/shared/utils/formatters'
import { getServerApi } from '@garage/api/server'
export default async function ExpenseDetailPage(props: { params: Promise<{ id: string }> }) {
@@ -14,7 +15,7 @@ export default async function ExpenseDetailPage(props: { params: Promise<{ id: s
return <div className="text-muted-foreground">Expense not found.</div>
}
const taxLabel = data.tax?.title ? `${data.tax.title} (${data.tax.rate}%)` : undefined
const taxLabel = formatTaxLabel(data.tax, '') || undefined
return (
<DashboardPage header={null}>