diff --git a/components/AboutVersion.js b/components/AboutVersion.js index 72d5488d..d37c2fd8 100644 --- a/components/AboutVersion.js +++ b/components/AboutVersion.js @@ -83,7 +83,13 @@ function AboutVersion({ isStartPage = false, collapsed, onClose }) { return ( <> -
+
{t('Version')} {packageJson.version}
{modalsSidebarState.aboutVersion && ( diff --git a/components/Account.js b/components/Account.js index f3185153..6a628d81 100644 --- a/components/Account.js +++ b/components/Account.js @@ -41,6 +41,7 @@ function Account() { useEffect(() => { router.push(`?tab=${selectedTab}`, undefined, { shallow: true }) + // eslint-disable-next-line react-hooks/exhaustive-deps }, [selectedTab]) const tabs = ['Account', 'projects:Projects', 'projects:CreateProject'] diff --git a/components/AppBar.js b/components/AppBar.js index 605d5425..4d01c933 100644 --- a/components/AppBar.js +++ b/components/AppBar.js @@ -53,9 +53,15 @@ export default function AppBar({ setIsOpenSideBar, isOpenSideBar }) {
isOpenSideBar && setIsOpenSideBar(false)}>
- {!['/user-agreement', '/confession-steps', 'agreements'].includes( - router.pathname - ) && } + {![ + '/user-agreement', + '/confession-steps', + '/agreements', + '/404', + '/privacy-policy', + ].includes(router.pathname) && ( + + )}
- {buttonTitle} + {buttonTitle}
{isOpen && ( diff --git a/components/SideBar.js b/components/SideBar.js index 6a8ea6e5..53ef8e2d 100644 --- a/components/SideBar.js +++ b/components/SideBar.js @@ -37,6 +37,11 @@ import Notes from 'public/notes.svg' import Users from 'public/users.svg' import About from 'public/about.svg' +const activeIconClass = + 'stroke-th-text-primary lg:stroke-th-secondary-300 group-hover:stroke-th-text-primary' +const activeTextClass = + 'text-th-text-primary lg:text-th-secondary-300 group-hover:text-th-text-primary' + function SideBar({ setIsOpenSideBar, access }) { const { user } = useCurrentUser() const { t } = useTranslation(['common', 'projects', 'users', 'start-page']) @@ -44,7 +49,6 @@ function SideBar({ setIsOpenSideBar, access }) { const [collapsed, setCollapsed] = useState(true) const [isLargeScreen, setIsLargeScreen] = useState(false) - const [isOpen, setIsOpen] = useState(false) const [showAbout, setShowAbout] = useState(false) const [showCreate, setShowCreate] = useState(false) @@ -79,10 +83,6 @@ function SideBar({ setIsOpenSideBar, access }) { return () => window.removeEventListener('resize', checkScreenSize) }, []) - useEffect(() => { - setIsOpen(isLargeScreen) - }, [isLargeScreen]) - return ( {({ open, close }) => ( @@ -114,8 +114,8 @@ function SideBar({ setIsOpenSideBar, access }) { leave="transition-opacity duration-200" > e.stopPropagation()} onMouseEnter={() => { @@ -171,9 +171,9 @@ function SideBar({ setIsOpenSideBar, access }) { -
+
- + {t('Account')}
@@ -204,9 +210,9 @@ function SideBar({ setIsOpenSideBar, access }) { -
+
- + {t('Projects')}
@@ -238,11 +250,11 @@ function SideBar({ setIsOpenSideBar, access }) {