From 458dfe66c22541acbe5bfdb71ac86c8da1fba2f0 Mon Sep 17 00:00:00 2001 From: Viet Anh Nguyen Date: Tue, 6 Feb 2024 13:36:43 +0700 Subject: [PATCH] Minor UI improvements --- .../report-detail/report-overview-table.tsx | 3 ++- cope2n-fe/src/pages/dashboard/index.tsx | 6 ------ .../src/pages/reports/report_detail/index.tsx | 18 +++++++++++++++--- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/cope2n-fe/src/components/report-detail/report-overview-table.tsx b/cope2n-fe/src/components/report-detail/report-overview-table.tsx index 5f0f1c1..243742b 100644 --- a/cope2n-fe/src/components/report-detail/report-overview-table.tsx +++ b/cope2n-fe/src/components/report-detail/report-overview-table.tsx @@ -48,7 +48,7 @@ const columns: TableColumnsType = [ title: 'OCR extraction date', dataIndex: 'extractionDate', key: 'extractionDate', - width: '130px', + width: 180, render: (_, record) => { if (record.extractionDate.includes('Subtotal')) return ( @@ -262,6 +262,7 @@ const ReportOverViewTable: React.FC = ({ bordered size='small' scroll={{ x: 2000 }} + pagination={false} /> ); diff --git a/cope2n-fe/src/pages/dashboard/index.tsx b/cope2n-fe/src/pages/dashboard/index.tsx index 3924e6f..6d998cf 100644 --- a/cope2n-fe/src/pages/dashboard/index.tsx +++ b/cope2n-fe/src/pages/dashboard/index.tsx @@ -107,12 +107,6 @@ const Dashboard = () => { }} /> - - - { - {(fileObject && !error) && } + {(fileObject && !error) && <> +
+ Note: All changes here will not be saved into server. +
+ + } {(!fileObject && !error) && Loading...} - {error && {error}} + {error && <> + + {error} +
Try downloading the file:
+ + {fileObject.name} + + }
);