Skip to content

Commit

Permalink
fix website build
Browse files Browse the repository at this point in the history
  • Loading branch information
hayes committed Feb 7, 2023
1 parent ddc5258 commit 8cac393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/components/Docs/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const components = {
Alert,
};

const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
const useIsomorphicLayoutEffect = typeof window === 'undefined' ? useEffect : useLayoutEffect;

export function DocsPage({ children, nav }: { children?: React.ReactNode; nav: TableOfContents }) {
const bodyRef = useRef<HTMLDivElement | null>(null);
Expand Down

0 comments on commit 8cac393

Please sign in to comment.