Pass domain to realtime components.

This commit is contained in:
Mike Cao 2023-02-24 02:41:02 -08:00
parent 7d3334ccce
commit 5657a64c77
8 changed files with 9 additions and 75 deletions

View file

@ -17,10 +17,10 @@ export default function RealtimeHome() {
if (data?.length) {
router.push(`realtime/${data[0].id}`);
}
}, [data]);
}, [data, router]);
return (
<Page loading={isLoading || !data} error={error}>
<Page loading={isLoading || data?.length > 0} error={error}>
<PageHeader title={formatMessage(labels.realtime)} />
{data?.length === 0 && <EmptyPlaceholder message={formatMessage(messages.noWebsites)} />}
</Page>