-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Temporary remove usage of uptime component
- Loading branch information
Showing
4 changed files
with
2 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Temporary remove usage of uptime component |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,9 @@ | ||
import { FC } from 'react' | ||
import { useTranslation } from 'react-i18next' | ||
import Typography from '@mui/material/Typography' | ||
import { COLORS } from '../../../styles/theme/colors' | ||
import { SnapshotTextCard } from '../../components/Snapshots/SnapshotCard' | ||
import { UptimeStatus } from '../../components/UptimeStatus' | ||
|
||
export const UptimeCard: FC = () => { | ||
const { t } = useTranslation() | ||
|
||
return ( | ||
<SnapshotTextCard | ||
title={t('validator.uptime')} | ||
label={ | ||
<Typography sx={{ fontSize: 12, color: COLORS.grayMedium }}> | ||
{t('validator.signedBlocksPercentage')} | ||
</Typography> | ||
} | ||
> | ||
{/* TODO: provide data when API is ready */} | ||
<UptimeStatus percentage={94} status={[100, 100, 100, 50]} /> | ||
</SnapshotTextCard> | ||
) | ||
return <SnapshotTextCard title={t('validator.uptime')}>{t('common.missing')}</SnapshotTextCard> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters