From 8e5eecead8a001ea220766a5fabecd0f4491e838 Mon Sep 17 00:00:00 2001 From: MTG2000 Date: Wed, 10 Aug 2022 20:45:34 +0300 Subject: [PATCH] fix: fixed the issues regarding the mobile nav styling --- .../ErrorBoundary/ErrorBoundary.tsx | 16 ++++--- src/Components/Navbar/NavDesktop.tsx | 2 +- src/Components/Navbar/NavMobile.tsx | 43 +++++++------------ 3 files changed, 26 insertions(+), 35 deletions(-) diff --git a/src/Components/ErrorBoundary/ErrorBoundary.tsx b/src/Components/ErrorBoundary/ErrorBoundary.tsx index 3a17e1f..7fcfef3 100644 --- a/src/Components/ErrorBoundary/ErrorBoundary.tsx +++ b/src/Components/ErrorBoundary/ErrorBoundary.tsx @@ -26,14 +26,16 @@ class ErrorBoundary extends Component { public render() { if (this.state.hasError) { - return - Sorry, something went wrong...😵 -
- Try refreshing the page. -

+ return
+ + Sorry, something went wrong...😵 +
+ Try refreshing the page. +

- } type="unknown">
; + } type="unknown"> +
; } return this.props.children; diff --git a/src/Components/Navbar/NavDesktop.tsx b/src/Components/Navbar/NavDesktop.tsx index 4fa8a9a..f69ae78 100644 --- a/src/Components/Navbar/NavDesktop.tsx +++ b/src/Components/Navbar/NavDesktop.tsx @@ -201,7 +201,7 @@ export default function NavDesktop() { : - ) diff --git a/src/Components/Navbar/NavMobile.tsx b/src/Components/Navbar/NavMobile.tsx index db03d3b..0e32380 100644 --- a/src/Components/Navbar/NavMobile.tsx +++ b/src/Components/Navbar/NavMobile.tsx @@ -151,20 +151,8 @@ export default function NavMobile() { >
toggleDrawerOpen(false)} /> - { - !curUser && - - }
-
    +
    • toggleDrawerOpen(false)} className='font-medium flex gap-16 !rounded-12 ' > -
      - ✍🏼 +
      + ✍🏼

      @@ -214,8 +202,8 @@ export default function NavMobile() { className='font-medium flex gap-16 !rounded-12 opacity-60' > -

      - 💬 +
      + 💬

      @@ -231,8 +219,8 @@ export default function NavMobile() { onClick={() => toggleDrawerOpen(false)} className='font-medium flex gap-16 !rounded-12' > -

      - 🏆 +
      + 🏆

      @@ -264,14 +252,15 @@ export default function NavMobile() { Donate

    • -
    • - toggleDrawerOpen(false)} - className='text-body4 font-bold hover:text-primary-600'> - Logout 👋 - -
    • + {curUser && +
    • + toggleDrawerOpen(false)} + className='text-body4 font-bold hover:text-primary-600'> + Logout 👋 + +
    • }