Unify empty state
This commit is contained in:
parent
5f060d2994
commit
4e3fcd7252
4 changed files with 34 additions and 21 deletions
|
|
@ -12,7 +12,7 @@ import ExternalSearchLinks from './ExternalSearchLinks';
|
|||
import { InfoIcon, CloseIcon } from './ui/Icons';
|
||||
import { IconButton } from './ui/IconButton';
|
||||
import { FeatureInfoPopup } from './FeatureInfoPopup';
|
||||
import { PaneEmptyState } from './ui/EmptyState';
|
||||
import { EmptyState } from './ui/EmptyState';
|
||||
|
||||
interface AreaPaneProps {
|
||||
stats: HexagonStatsResponse | null;
|
||||
|
|
@ -62,7 +62,14 @@ export default function AreaPane({
|
|||
);
|
||||
|
||||
if (!hexagonId) {
|
||||
return <PaneEmptyState message="Click a hexagon or postcode to view area statistics" />;
|
||||
return (
|
||||
<EmptyState
|
||||
icon={<InfoIcon className="w-8 h-8 text-warm-300 dark:text-warm-600" />}
|
||||
title="No area selected"
|
||||
description="Click a hexagon or postcode to view area statistics"
|
||||
centered
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue