From 5bc2938e048dbdebd3cec00c222286d60c2de1ab Mon Sep 17 00:00:00 2001 From: Stefanos Hadjipetrou Date: Fri, 4 Oct 2024 12:19:44 +0300 Subject: [PATCH] feat: datasets latest update date --- src/app/components/chart-block/index.tsx | 7 +++---- .../datasets/access-to-funding/blocks/block-1/index.tsx | 4 ++-- .../datasets/access-to-funding/blocks/block-4/index.tsx | 4 ++-- src/app/pages/datasets/common/chart-block/index.tsx | 7 +++---- .../datasets/grant-implementation/blocks/block-1/index.tsx | 4 ++-- .../datasets/grant-implementation/blocks/block-4/index.tsx | 4 ++-- src/app/pages/datasets/resource-mobilization/index.tsx | 4 ++-- src/app/pages/geography/index.tsx | 4 ++-- src/app/pages/grants/layout.tsx | 4 ++-- 9 files changed, 20 insertions(+), 22 deletions(-) diff --git a/src/app/components/chart-block/index.tsx b/src/app/components/chart-block/index.tsx index 88c807191..cb4c5414a 100644 --- a/src/app/components/chart-block/index.tsx +++ b/src/app/components/chart-block/index.tsx @@ -166,14 +166,13 @@ export const ChartBlock: React.FC = ( marginTop="40px" alignItems="center" position="relative" - // justifyContent={props.latestUpdate ? "space-between" : "flex-end"} - justifyContent="flex-end" + justifyContent={props.latestUpdate ? "space-between" : "flex-end"} > - {/* {props.latestUpdate && ( + {props.latestUpdate && ( Latest Update: {props.latestUpdate} - )} */} + )} {!props.noBottomToolbar && ( = ( ))} - {/* + Latest Update: {latestUpdateDate} - */} + ); diff --git a/src/app/pages/datasets/access-to-funding/blocks/block-4/index.tsx b/src/app/pages/datasets/access-to-funding/blocks/block-4/index.tsx index ee0a5cc79..3492ad77c 100644 --- a/src/app/pages/datasets/access-to-funding/blocks/block-4/index.tsx +++ b/src/app/pages/datasets/access-to-funding/blocks/block-4/index.tsx @@ -128,9 +128,9 @@ export const AccessToFundingBlock4: React.FC = ( )} - {/* + Latest Update: {latestUpdateDate} - */} + ); }; diff --git a/src/app/pages/datasets/common/chart-block/index.tsx b/src/app/pages/datasets/common/chart-block/index.tsx index efe392b0b..be19695d8 100644 --- a/src/app/pages/datasets/common/chart-block/index.tsx +++ b/src/app/pages/datasets/common/chart-block/index.tsx @@ -232,14 +232,13 @@ export const DatasetChartBlock: React.FC = ( marginTop="40px" alignItems="center" position="relative" - // justifyContent={props.latestUpdate ? "space-between" : "flex-end"} - justifyContent="flex-end" + justifyContent={props.latestUpdate ? "space-between" : "flex-end"} > - {/* {props.latestUpdate && ( + {props.latestUpdate && ( Latest Update: {props.latestUpdate} - )} */} + )} - {/* + Latest Update: {latestUpdateDate} - */} + ); }; diff --git a/src/app/pages/datasets/grant-implementation/blocks/block-4/index.tsx b/src/app/pages/datasets/grant-implementation/blocks/block-4/index.tsx index 5b2711dba..38190b48b 100644 --- a/src/app/pages/datasets/grant-implementation/blocks/block-4/index.tsx +++ b/src/app/pages/datasets/grant-implementation/blocks/block-4/index.tsx @@ -167,11 +167,11 @@ export const GrantImplementationPageBlock4: React.FC< ))} - {/* + Latest Update: {latestUpdateDate} - */} + {loadingBudgetBreakdown && ( { - {/* + Latest Update: {latestUpdateDate} - */} + { ))} - {/* + Latest Update: {latestUpdateDate} - */} + ); }; diff --git a/src/app/pages/grants/layout.tsx b/src/app/pages/grants/layout.tsx index 7db037565..f0baf52a1 100644 --- a/src/app/pages/grants/layout.tsx +++ b/src/app/pages/grants/layout.tsx @@ -252,11 +252,11 @@ export const GrantsLayout: React.FC = ( {viewResult} {pagination} - {/* + Latest Update: {props.latestUpdateDate} - */} + ); };