Skip to content

Commit

Permalink
Merge pull request #97 from sbv-world-health-org-metrics/ajhenry/date…
Browse files Browse the repository at this point in the history
…-updated

Add last updated date
  • Loading branch information
ipc103 authored Feb 14, 2024
2 parents 1a9be7f + 9f62e80 commit 95a48d4
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions who-metrics-ui/src/components/RepositoriesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -839,16 +839,23 @@ const RepositoriesTable = () => {
);

const displayRows = filterRepos(sortRepos(repos));
const createdDate = new Date(Data.meta.createdAt);

return (
<div className="h-full flex flex-col">
<div className="py-2">
<div className="flex flex-row items-center justify-between">
<div className="flex flex-row space-x-1 justify-start items-center">
<Tooltip aria-label="All of the repositories in this organization">
<InfoIcon size={24} />
</Tooltip>
<Text>{subTitle()}</Text>
<div className="flex flex-row space-x-4 justify-start items-center">
<Box className="flex flex-row items-center space-x-1">
<Tooltip aria-label="All of the repositories in this organization">
<InfoIcon size={24} />
</Tooltip>
<Text>{subTitle()}</Text>
</Box>
<Text>
Last updated {createdDate.toLocaleDateString()} at{' '}
{createdDate.toLocaleTimeString()}
</Text>
</div>
<div className="flex flex-row items-center space-x-2">
<Button
Expand Down

0 comments on commit 95a48d4

Please sign in to comment.