diff --git a/apps/temp-docs/components/layouts/Layout.tsx b/apps/temp-docs/components/layouts/Layout.tsx index 4ff31541aac..851373ce352 100644 --- a/apps/temp-docs/components/layouts/Layout.tsx +++ b/apps/temp-docs/components/layouts/Layout.tsx @@ -40,24 +40,28 @@ const DocsLayout = ({
-
+
-
-
- {children} -
-
-
On this page
- {toc - ? toc.json.map((item: any) => { - return ( -
  • - {item.content} -
  • - ) - }) - : 'Please note: No TOC on this page'} +
    +
    +
    + {children} +
    + {toc && ( +
    +
    On this page
    +
      + {toc.json.map((item: any, i: number) => { + return ( +
    • + {item.content} +
    • + ) + })} +
    +
    + )}