Skip to content

Commit

Permalink
feat: datasets latest update date
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanoshadjipetrou committed Oct 4, 2024
1 parent e5c228f commit 5bc2938
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 22 deletions.
7 changes: 3 additions & 4 deletions src/app/components/chart-block/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,13 @@ export const ChartBlock: React.FC<ChartBlockProps> = (
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 && (
<Typography variant="overline">
Latest Update: <b>{props.latestUpdate}</b>
</Typography>
)} */}
)}
{!props.noBottomToolbar && (
<ChartBlockButtonToolbar
blockId={id}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ export const AccessToFundingBlock1: React.FC<AccessToFundingBlock1Props> = (
</Box>
</Grid>
))}
{/* <Grid item xs={12}>
<Grid item xs={12}>
<Typography variant="overline">
Latest Update: <b>{latestUpdateDate}</b>
</Typography>
</Grid> */}
</Grid>
</Grid>
</Box>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ export const AccessToFundingBlock4: React.FC<AccessToFundingBlock4Props> = (
</Box>
)}
</Box>
{/* <Typography variant="overline">
<Typography variant="overline">
Latest Update: <b>{latestUpdateDate}</b>
</Typography> */}
</Typography>
</Box>
);
};
7 changes: 3 additions & 4 deletions src/app/pages/datasets/common/chart-block/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,13 @@ export const DatasetChartBlock: React.FC<DatasetChartBlockProps> = (
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 && (
<Typography variant="overline">
Latest Update: <b>{props.latestUpdate}</b>
</Typography>
)} */}
)}
<ChartBlockButtonToolbar
blockId={id}
hashId={props.id}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ export const GrantImplementationPageBlock1: React.FC<
</Typography>
</Box>
</Box>
{/* <Box marginBottom="25px">
<Box marginBottom="25px">
<Typography variant="overline">
Latest Update: <b>{latestUpdateDate}</b>
</Typography>
</Box> */}
</Box>
</React.Fragment>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ export const GrantImplementationPageBlock4: React.FC<
</Box>
))}
</Box>
{/* <Box>
<Box>
<Typography variant="overline">
Latest Update: <b>{latestUpdateDate}</b>
</Typography>
</Box> */}
</Box>
{loadingBudgetBreakdown && (
<Box
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/datasets/resource-mobilization/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -655,11 +655,11 @@ export const ResourceMobilizationPage: React.FC = () => {
</Grid>
</Grid>
</Grid>
{/* <Grid item xs={12}>
<Grid item xs={12}>
<Typography variant="overline">
Latest Update: <b>{latestUpdateDate}</b>
</Typography>
</Grid> */}
</Grid>
</Grid>
<Divider
sx={{
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/geography/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,11 @@ export const Geography: React.FC = () => {
))}
</Box>
</Box>
{/* <Box>
<Box>
<Typography variant="overline">
Latest Update: <b>{latestUpdateDate}</b>
</Typography>
</Box> */}
</Box>
</Box>
);
};
4 changes: 2 additions & 2 deletions src/app/pages/grants/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,11 @@ export const GrantsLayout: React.FC<GrantsLayoutProps> = (
{viewResult}
{pagination}
</Box>
{/* <Box>
<Box>
<Typography variant="overline">
Latest Update: <b>{props.latestUpdateDate}</b>
</Typography>
</Box> */}
</Box>
</Box>
);
};

0 comments on commit 5bc2938

Please sign in to comment.