mirror of
https://github.com/spliit-app/spliit.git
synced 2026-02-23 07:56:12 +01:00
Add Expense Date (#26)
* add expense date * Improve date formatting * Prettier * Change field description --------- Co-authored-by: Sebastien Castiel <sebastien@castiel.me>
This commit is contained in:
@@ -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}>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
'use server'
|
||||
import { getGroups } from "@/lib/api"
|
||||
import { getGroups } from '@/lib/api'
|
||||
|
||||
export async function getGroupsAction(groupIds: string[]) {
|
||||
'use server'
|
||||
|
||||
Reference in New Issue
Block a user