fix: info page card and map error states (#412)

This commit is contained in:
Vojtech Simetka
2022-06-20 16:33:52 +02:00
committed by GitHub
parent 5e31c21f49
commit b969d8caee
2 changed files with 28 additions and 4 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ export default function Status(): ReactElement {
return (
<div>
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'stretch', alignContent: 'stretch' }}>
{status.all ? (
{status.all === 'OK' ? (
<Card
buttonProps={{ iconType: Search, children: 'Access Content', onClick: () => navigate(ROUTES.DOWNLOAD) }}
icon={<Globe />}
@@ -105,7 +105,7 @@ export default function Status(): ReactElement {
)}
</div>
<div style={{ height: '16px' }} />
<Map />
<Map error={status.topology.checkState !== 'OK'} />
<div style={{ height: '2px' }} />
<ExpandableListItem label="Connected peers" value={topology?.connected ?? '-'} />
<ExpandableListItem label="Population" value={topology?.population ?? '-'} />