aboutsummaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'src/app')
-rw-r--r--src/app/groups/[groupId]/expenses/expense-list.tsx5
-rw-r--r--src/app/groups/actions.ts2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/app/groups/[groupId]/expenses/expense-list.tsx b/src/app/groups/[groupId]/expenses/expense-list.tsx
index 798a5f8..7ee8329 100644
--- a/src/app/groups/[groupId]/expenses/expense-list.tsx
+++ b/src/app/groups/[groupId]/expenses/expense-list.tsx
@@ -41,7 +41,10 @@ export function ExpenseList({
{expense.title}
</div>
<div className="text-xs text-muted-foreground">
- Paid by <strong>{getParticipant(expense.paidById)?.name}</strong>{' '}
+ Paid by <strong>{getParticipant(expense.paidById)?.name}</strong> on{' '}
+ {expense.expenseDate.toLocaleDateString('en-US', {
+ dateStyle: 'medium',
+ })}{' '}
for{' '}
{expense.paidFor.map((paidFor, index) => (
<Fragment key={index}>
diff --git a/src/app/groups/actions.ts b/src/app/groups/actions.ts
index 2d07004..9e8e605 100644
--- a/src/app/groups/actions.ts
+++ b/src/app/groups/actions.ts
@@ -1,5 +1,5 @@
'use server'
-import { getGroups } from "@/lib/api"
+import { getGroups } from '@/lib/api'
export async function getGroupsAction(groupIds: string[]) {
'use server'