feat(explorer): empty state appears below headers in more pages

This commit is contained in:
Edd
2023-01-03 10:20:44 +00:00
parent a7cec0b1b7
commit fe57be9cdb
2 changed files with 17 additions and 8 deletions
@@ -20,10 +20,13 @@ const Assets = () => {
if (!assets || assets.length === 0) {
if (!loading) {
return (
<EmptyList
heading={t('This chain has no assets')}
label={t('0 assets')}
/>
<section>
<RouteTitle data-testid="assets-header">{t('Assets')}</RouteTitle>
<EmptyList
heading={t('This chain has no assets')}
label={t('0 assets')}
/>
</section>
);
} else {
return <Loader />;
@@ -17,10 +17,16 @@ const Governance = () => {
if (!data || !data.proposalsConnection || !data.proposalsConnection.edges) {
if (!loading) {
return (
<EmptyList
heading={t('This chain has no proposals')}
label={t('0 proposals')}
/>
<section>
<RouteTitle data-testid="governance-header">
{t('Governance Proposals')}
</RouteTitle>
<EmptyList
heading={t('This chain has no proposals')}
label={t('0 proposals')}
/>
</section>
);
} else {
return <Loader />;