diff --git a/components/nav/common.js b/components/nav/common.js index a032810f..7a8dc4e5 100644 --- a/components/nav/common.js +++ b/components/nav/common.js @@ -160,16 +160,21 @@ export function NavWalletSummary ({ className }) { ) } -export const Indicator = () => { +export const Indicator = ({ show, children }) => { return ( - - - {' '} - - +
+ {children} + {show && ( + + + {' '} + + + )} +
) } @@ -186,8 +191,7 @@ export function MeDropdown ({ me, dropNavKey }) {
- {`@${me.name}`} - {indicator && } + @{me.name}
@@ -195,10 +199,7 @@ export function MeDropdown ({ me, dropNavKey }) { -
- profile - {profileIndicator && } -
+ profile
@@ -206,10 +207,7 @@ export function MeDropdown ({ me, dropNavKey }) { -
- wallets - {walletIndicator && } -
+ wallets
diff --git a/components/nav/mobile/offcanvas.js b/components/nav/mobile/offcanvas.js index c996ef01..9804001a 100644 --- a/components/nav/mobile/offcanvas.js +++ b/components/nav/mobile/offcanvas.js @@ -32,11 +32,7 @@ export default function OffCanvas ({ me, dropNavKey }) { return ( <> -
- - {indicator && } -
- + @@ -57,10 +53,7 @@ export default function OffCanvas ({ me, dropNavKey }) { <> -
- profile - {profileIndicator && } -
+ profile
@@ -68,10 +61,7 @@ export default function OffCanvas ({ me, dropNavKey }) { -
- wallets - {walletIndicator && } -
+ wallets
@@ -101,10 +91,7 @@ export default function OffCanvas ({ me, dropNavKey }) {
-
- @{me?.name || 'anon'} - {indicator && } -
+ @{me?.name || 'anon'}