Reimbursements

This commit is contained in:
Sebastien Castiel
2023-12-06 20:21:26 -05:00
parent 6ce2329f5c
commit 57899b0160
9 changed files with 62 additions and 14 deletions

View File

@@ -16,6 +16,7 @@ import {
TableRow,
} from '@/components/ui/table'
import { getGroup, getGroupExpenses } from '@/lib/api'
import { cn } from '@/lib/utils'
import { ChevronRight, Plus } from 'lucide-react'
import Link from 'next/link'
import { notFound } from 'next/navigation'
@@ -62,7 +63,10 @@ export default async function GroupExpensesPage({
</TableHeader>
<TableBody>
{expenses.map((expense) => (
<TableRow key={expense.id}>
<TableRow
key={expense.id}
className={cn(expense.isReimbursement && 'italic')}
>
<TableCell>{expense.title}</TableCell>
<TableCell>
<Badge variant="secondary">