Skip to content

Commit

Permalink
add missing session
Browse files Browse the repository at this point in the history
  • Loading branch information
Southclaws committed Jun 23, 2024
1 parent 1fe2795 commit e0b4342
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions web/src/components/directory/DirectoryEmptyState.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { Empty } from "src/components/site/Empty";

import { useSession } from "@/auth";
import { Center } from "@/styled-system/jsx";

export function DirectoryEmptyState() {
const session = useSession();
return (
<Center h="full">
<Empty>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { LStack, VStack } from "@/styled-system/jsx";
import { Props, useDatagraphIndexScreen } from "./useDatagraphIndexScreen";

export function Client(props: Props) {
const { ready, data, empty, error, session } = useDatagraphIndexScreen(props);
const { ready, data, empty, error } = useDatagraphIndexScreen(props);

if (!ready) return <Unready {...error} />;

Expand Down

0 comments on commit e0b4342

Please sign in to comment.