From 199b02b0cc30c3eec5714b9c743832da227c1ee5 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Fri, 27 Jan 2023 20:36:45 -0800 Subject: [PATCH] Fix unauth menu --- components/Header/index.scss | 7 ++++++- components/Header/index.tsx | 8 ++++++-- components/LoginModal/index.tsx | 4 ++-- components/SignupModal/index.tsx | 4 ++-- styles/themes.scss | 4 ++++ 5 files changed, 20 insertions(+), 7 deletions(-) diff --git a/components/Header/index.scss b/components/Header/index.scss index f19cc45f..bfa358ea 100644 --- a/components/Header/index.scss +++ b/components/Header/index.scss @@ -10,13 +10,18 @@ gap: $unit; } - img { + img, + .placeholder { $diameter: 32px; border-radius: calc($diameter / 2); height: $diameter; width: $diameter; } + .placeholder { + background: var(--placeholder-bg); + } + #DropdownWrapper { display: inline-block; padding-bottom: $unit; diff --git a/components/Header/index.tsx b/components/Header/index.tsx index 2fe2a72f..a66c95a5 100644 --- a/components/Header/index.tsx +++ b/components/Header/index.tsx @@ -225,7 +225,7 @@ const Header = () => { /> ) } else { - image = {t('no_user')} + image =
} return image @@ -395,7 +395,11 @@ const Header = () => { items = ( <> - New party + + + New party + + diff --git a/components/LoginModal/index.tsx b/components/LoginModal/index.tsx index be2f72c6..e2910acf 100644 --- a/components/LoginModal/index.tsx +++ b/components/LoginModal/index.tsx @@ -199,9 +199,9 @@ const LoginModal = () => { return ( -
  • +
    {t('menu.login')} -
  • +
    { return ( -
  • +
    {t('menu.signup')} -
  • +