Skip to content

Commit

Permalink
chore: adjust loading text
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-1979 committed Oct 22, 2024
1 parent 0bc9423 commit 9b80f44
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,6 @@ export default function Governance (): React.ReactElement {
: !!referenda?.length && referendumCount[topMenu] && referenda.length < (referendumCount[topMenu] || 0)
? <Typography color='secondary.contrastText' fontSize='18px' fontWeight={600} onClick={getMoreReferenda}>
<div id='observerObj' style={{ height: '1px' }} />
{t('Loaded {{count}} out of {{referendumCount}} referenda. Click here to load more', { replace: { count: referenda?.length || 0, referendumCount: referendumCount[topMenu] } })}
</Typography>
: <Typography color='text.disabled' fontSize='15px'>
{t('No more referenda to load.')}
Expand All @@ -454,6 +453,9 @@ export default function Governance (): React.ReactElement {
: isLoadingMore &&
<Grid container justifyContent='center'>
<HorizontalWaiting color={theme.palette.primary.main} />
<Typography color='secondary.contrastText' fontSize='13px' display='block' width="100%" textAlign="center">
{t('Loaded {{count}} out of {{referendumCount}} referenda ...', { replace: { count: referenda?.length || 0, referendumCount: referendumCount[topMenu] } })}
</Typography>
</Grid>
}
</>
Expand Down

0 comments on commit 9b80f44

Please sign in to comment.