Skip to content

Commit

Permalink
update validator details blocks component to display coming soon
Browse files Browse the repository at this point in the history
  • Loading branch information
MonikaCat committed Jan 21, 2024
1 parent 442fceb commit 6b64298
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 43 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import Typography from '@mui/material/Typography';
import useAppTranslation from '@/hooks/useAppTranslation';
import Box from '@/components/box';
import useStyles from '@/screens/validator_details/components/blocks/styles';

const Blocks = ({ className }) => {
const { t } = useAppTranslation('validators');
const { classes, cx } = useStyles();
return (
<Box className={cx(classes.root, className)}>
<Typography variant="h2">{t('lastBlocks')}</Typography>
<div className={classes.content}>
<Typography variant="h4">{t('comingSoon')}</Typography>
</div>
</Box>
);
};

export default Blocks;
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { makeStyles } from 'tss-react/mui';

const useStyles = makeStyles()(theme => ({
root: {
'& .MuiTypography-h2': {
marginBottom: theme.spacing(2),
},
},
content: {
flex: 1,
display: 'flex',
alignItems: 'center',
justifyContent: 'space-around',
color: theme.palette.custom.fonts.fontThree,
backgroundColor: theme.palette.custom.general.surfaceTwo,
borderRadius: '8px',
height: '22vh',
},
}));

export default useStyles;
3 changes: 2 additions & 1 deletion packages/ui/public/locales/en/web_neutron.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"params.transferTimeoutPeriod": "Transfer Timeout Period",
"params.consumerRedistributionFraction": "Consumer Redistribution Fraction",
"params.blocksPerDistributionTransmission": "Blocks Per Distribution Transmission",
"validators.stakingDataIsSourcedFromCosmoshub": "The staking data is sourced from Cosmos Hub, as Neutron is a consumer chain."
"validators.stakingDataIsSourcedFromCosmoshub": "The staking data is sourced from Cosmos Hub, as Neutron is a consumer chain.",
"validators.comingSoon": "Coming soon"
}

0 comments on commit 6b64298

Please sign in to comment.