react-intl#FormattedTime TypeScript Examples
The following examples show how to use
react-intl#FormattedTime.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Home.tsx From akashlytics with GNU General Public License v3.0 | 6 votes |
Home: React.FunctionComponent<IHomeProps> = ({}) => {
const { data: dashboardData, status } = useDashboardData();
const classes = useStyles();
const mediaQuery = useMediaQueryContext();
return (
<>
<Helmet title="Dashboard" />
<div className={clsx("container")}>
{dashboardData ? (
<>
<Dashboard dashboardData={dashboardData} />
<div className="row mt-5">
<div
className={clsx("col-12", classes.refreshDate, {
"text-center": mediaQuery.smallScreen
})}
>
Last updated: <FormattedDate value={dashboardData.now.date} /> <FormattedTime value={dashboardData.now.date} />
</div>
</div>
</>
) : (
<div className="text-center">
<CircularProgress size={80} />
</div>
)}
</div>
</>
);
}