From 72fe19987957e78cbd1d97ccfd8b87d85fea5c88 Mon Sep 17 00:00:00 2001 From: Sebastien Castiel Date: Wed, 6 Dec 2023 15:23:18 -0500 Subject: Add currency --- src/app/groups/[groupId]/page.tsx | 4 ++-- src/components/expense-form.tsx | 23 +++++++++++++---------- src/components/group-form.tsx | 26 +++++++++++++++++++++++++- src/lib/api.ts | 2 ++ src/lib/schemas.ts | 4 ++++ 5 files changed, 46 insertions(+), 13 deletions(-) (limited to 'src') diff --git a/src/app/groups/[groupId]/page.tsx b/src/app/groups/[groupId]/page.tsx index b7dc93f..83fc3ef 100644 --- a/src/app/groups/[groupId]/page.tsx +++ b/src/app/groups/[groupId]/page.tsx @@ -86,8 +86,8 @@ export default async function GroupPage({ ))} - - $ {expense.amount.toFixed(2)} + + {group.currency} {expense.amount.toFixed(2)}