From 97932373575a815e5d8726f2be725b9ef85e1c7b Mon Sep 17 00:00:00 2001 From: Nikolaj Frey Date: Fri, 30 Jun 2023 09:41:06 +1000 Subject: [PATCH] feat: main Fixed responsiveness and added Safe and safe functions and added globalThis usage for recursion safety on SSR --- remix/app/components/Layout/Main.tsx | 11 +- remix/app/components/Nav/Nav.tsx | 23 +++- remix/app/components/Nav/ProfileDrawer.tsx | 27 ++++ remix/app/components/Safety/Safe.tsx | 7 + .../components/Skeleton/RainbowSkeleton.tsx | 54 ++++---- remix/app/components/Thingtime/Thingtime.tsx | 130 +++++++++--------- .../components/Thingtime/ThingtimeDemo.tsx | 2 +- remix/app/functions/safe.tsx | 52 ++++++- remix/app/root.tsx | 30 ++-- remix/app/routes/index.tsx | 9 +- 10 files changed, 234 insertions(+), 111 deletions(-) create mode 100644 remix/app/components/Nav/ProfileDrawer.tsx create mode 100644 remix/app/components/Safety/Safe.tsx diff --git a/remix/app/components/Layout/Main.tsx b/remix/app/components/Layout/Main.tsx index b5eeed7..e7deeac 100644 --- a/remix/app/components/Layout/Main.tsx +++ b/remix/app/components/Layout/Main.tsx @@ -1,9 +1,18 @@ import { Flex } from '@chakra-ui/react' import { Nav } from '../Nav/Nav' +import { ProfileDrawer } from '../Nav/ProfileDrawer' export const Main = props => { return ( - + + {/* */}