From 59954d30227744fa26092ebb805604736f08fb89 Mon Sep 17 00:00:00 2001 From: chark1es Date: Wed, 19 Feb 2025 06:25:31 -0800 Subject: [PATCH] add color --- .../reimbursement/ReimbursementList.tsx | 32 ++++++++++++++----- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/src/components/dashboard/reimbursement/ReimbursementList.tsx b/src/components/dashboard/reimbursement/ReimbursementList.tsx index 797ca2b..0e7a592 100644 --- a/src/components/dashboard/reimbursement/ReimbursementList.tsx +++ b/src/components/dashboard/reimbursement/ReimbursementList.tsx @@ -176,7 +176,8 @@ export default function ReimbursementList() { try { const records = await pb.collection('reimbursement').getList(1, 50, { filter: `submitted_by = "${userId}"`, - sort: '-created' + sort: '-created', + expand: 'audit_notes' }); console.log('Filtered records response:', records); @@ -411,15 +412,31 @@ export default function ReimbursementList() { return (
!note.is_private).length > 0 && ( - +
@@ -527,10 +544,9 @@ export default function ReimbursementList() {
- )) - } + ))}
- + )}