From fc1fabd98dd8559885e9cf4adc2923f3e9e2040a Mon Sep 17 00:00:00 2001 From: southclaws Date: Sun, 7 Jan 2024 12:41:46 +0000 Subject: [PATCH] center directory empty state --- .../screens/directory/datagraph/DatagraphIndexScreen.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/web/src/screens/directory/datagraph/DatagraphIndexScreen.tsx b/web/src/screens/directory/datagraph/DatagraphIndexScreen.tsx index 79f4beef8..679966667 100644 --- a/web/src/screens/directory/datagraph/DatagraphIndexScreen.tsx +++ b/web/src/screens/directory/datagraph/DatagraphIndexScreen.tsx @@ -7,7 +7,7 @@ import { Empty } from "src/components/feed/common/PostRef/Empty"; import { Unready } from "src/components/site/Unready"; import { Heading1, Heading2 } from "src/theme/components/Heading/Index"; -import { VStack } from "@/styled-system/jsx"; +import { Center, VStack } from "@/styled-system/jsx"; import { Props, useDatagraphIndexScreen } from "./useDatagraphIndexScreen"; @@ -19,7 +19,11 @@ export function Client(props: Props) { const { items, clusters, links } = data; if (empty) { - return This community knowledgebase is empty.; + return ( +
+ This community knowledgebase is empty. +
+ ); } return (