From 9123d84505b64a2640c28f5deb67ee8c0e41ec8c Mon Sep 17 00:00:00 2001 From: Dharmesh Patel Date: Tue, 20 Aug 2024 17:55:52 +0530 Subject: [PATCH] removed condition for global settings under header --- apps/acf-options-page/src/app/header.tsx | 46 ++++++++++++------------ 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/apps/acf-options-page/src/app/header.tsx b/apps/acf-options-page/src/app/header.tsx index 0d960e2d..eb07dc3e 100644 --- a/apps/acf-options-page/src/app/header.tsx +++ b/apps/acf-options-page/src/app/header.tsx @@ -19,7 +19,7 @@ function Header() { const { setIsOpen } = useTour(); const theme = useAppSelector(themeSelector); - const { role, error } = useAppSelector(firebaseSelector); + const { role } = useAppSelector(firebaseSelector); const dispatch = useAppDispatch(); const { t, i18n } = useTranslation(); @@ -145,35 +145,35 @@ function Header() {

- {!error && ( - - dispatch(switchSettingsModal())} data-testid='open-global-settings'> - - {t('header.settings')} - - - )} + + + dispatch(switchSettingsModal())} data-testid='open-global-settings'> + + {t('header.settings')} + + + {theme !== 'light' ? : } Toggle Theme - {!error && ( - - - {APP_LANGUAGES.map((language) => ( - changeLanguage(language)} active={i18n.language === language}> - {t(`language.${language}`)} - - ))} - - - Add your Language + + + + {APP_LANGUAGES.map((language) => ( + changeLanguage(language)} active={i18n.language === language}> + {t(`language.${language}`)} - - - )} + ))} + + + Add your Language + + + +