From dde1db1fb2b61ed41cd0e367a3be8ffd6ee84ccf Mon Sep 17 00:00:00 2001 From: theborakompanioni Date: Mon, 9 Mar 2026 20:42:55 +0100 Subject: [PATCH] chore(earn-report): reduce height of stats cards --- .../earn/report/EarnReportSheet.tsx | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/components/earn/report/EarnReportSheet.tsx b/src/components/earn/report/EarnReportSheet.tsx index 121b1ea4..2157cbe8 100644 --- a/src/components/earn/report/EarnReportSheet.tsx +++ b/src/components/earn/report/EarnReportSheet.tsx @@ -98,14 +98,12 @@ export const EarnReportSheet = ({ open, onOpenChange }: EarnReportSheetProps) => }), columnHelper.accessor('earnedAmount', { header: () =>
{t('earn.report.heading_earned')}
, - cell: (info) => - info.getValue() != null ? : undefined, + cell: (info) => (info.getValue() != null ? : undefined), meta: { align: 'right', numeric: true } as EarnReportColumnMeta, }), columnHelper.accessor('cjTotalAmount', { header: () =>
{t('earn.report.heading_cj_amount')}
, - cell: (info) => - info.getValue() != null ? : undefined, + cell: (info) => (info.getValue() != null ? : undefined), meta: { align: 'right', numeric: true } as EarnReportColumnMeta, }), columnHelper.accessor('inputCount', { @@ -115,8 +113,7 @@ export const EarnReportSheet = ({ open, onOpenChange }: EarnReportSheetProps) => }), columnHelper.accessor('inputAmount', { header: () =>
{t('earn.report.heading_input_value')}
, - cell: (info) => - info.getValue() != null ? : undefined, + cell: (info) => (info.getValue() != null ? : undefined), meta: { align: 'right', numeric: true } as EarnReportColumnMeta, }), columnHelper.accessor('notes', { @@ -213,7 +210,7 @@ export const EarnReportSheet = ({ open, onOpenChange }: EarnReportSheetProps) => ) : ( -
+
{/* Stats row */}
{( @@ -224,11 +221,11 @@ export const EarnReportSheet = ({ open, onOpenChange }: EarnReportSheetProps) => { label: t('earn.report.stats.earned_24hours'), value: earned24Hours }, ] as const ).map((stat) => ( - - + +
{stat.label}
-
- +
+