From 5fac82c20d34571ecb769bb2047ff928977c06d8 Mon Sep 17 00:00:00 2001 From: Isaiah Hamilton <70828596+Isaiah-Hamilton@users.noreply.github.com> Date: Tue, 31 May 2022 23:51:40 -0400 Subject: [PATCH] chore: update layout ui --- apps/temp-docs/components/layouts/Layout.tsx | 36 +++++++++++--------- apps/temp-docs/components/nav/NavBar.tsx | 2 +- apps/temp-docs/components/nav/SideBar.tsx | 2 +- apps/temp-docs/styles/main.css | 30 ++++++++++++++++ 4 files changed, 52 insertions(+), 18 deletions(-) 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} +
    • + ) + })} +
    +
    + )}