diff --git a/src/components/topbar/topbar.module.css b/src/components/topbar/topbar.module.css index 754c831c..0ffee491 100644 --- a/src/components/topbar/topbar.module.css +++ b/src/components/topbar/topbar.module.css @@ -53,6 +53,18 @@ color: var(--text-primary); } +.dropChoicesHidden { + display: none; +} + +.dropChoicesVisible { + display: block; +} + +.separator { + cursor: default; +} + .selectedTitle { background: none no-repeat scroll center right; background-image: url("/public/assets/buttons/droparrowgray.gif"); diff --git a/src/components/topbar/topbar.tsx b/src/components/topbar/topbar.tsx index 58e46324..0d522500 100644 --- a/src/components/topbar/topbar.tsx +++ b/src/components/topbar/topbar.tsx @@ -14,6 +14,7 @@ const TopBar = () => { const subscriptions = account?.subscriptions; const ethFilteredAddresses = subplebbitAddresses.filter((address: string) => address.endsWith('.eth')); + const dropChoicesClass = isClicked && subscriptions?.length ? styles.dropChoicesVisible : styles.dropChoicesHidden; const toggleClick = () => { setIsClicked(!isClicked); @@ -40,7 +41,7 @@ const TopBar = () => { {t('topbar_my_subs')} -