diff --git a/components/nav/common.js b/components/nav/common.js index b7963293..3a881ce3 100644 --- a/components/nav/common.js +++ b/components/nav/common.js @@ -165,8 +165,32 @@ export function NavWalletSummary ({ className }) { ) } +export const Indicator = ({ superscript }) => { + if (superscript) { + return ( + + + {' '} + + + ) + } + + return ( +
+ {' '} +
+ ) +} + export function MeDropdown ({ me, dropNavKey }) { if (!me) return null + + const profileIndicator = !me.bioId + return (
@@ -174,12 +198,7 @@ export function MeDropdown ({ me, dropNavKey }) {
{`@${me.name}`} - {!me.bioId && - - - {' '} - - } + {profileIndicator && }
@@ -188,10 +207,7 @@ export function MeDropdown ({ me, dropNavKey }) { profile - {me && !me.bioId && -
- {' '} -
} + {profileIndicator && }
diff --git a/components/nav/mobile/offcanvas.js b/components/nav/mobile/offcanvas.js index 698dc96e..78e09aec 100644 --- a/components/nav/mobile/offcanvas.js +++ b/components/nav/mobile/offcanvas.js @@ -2,7 +2,7 @@ import { useState } from 'react' import { Dropdown, Image, Nav, Navbar, Offcanvas } from 'react-bootstrap' import { MEDIA_URL } from '@/lib/constants' import Link from 'next/link' -import { LoginButtons, LogoutDropdownItem, NavWalletSummary } from '../common' +import { Indicator, LoginButtons, LogoutDropdownItem, NavWalletSummary } from '../common' import AnonIcon from '@/svgs/spy-fill.svg' import styles from './footer.module.css' import canvasStyles from './offcanvas.module.css' @@ -25,6 +25,8 @@ export default function OffCanvas ({ me, dropNavKey }) { ) : + const profileIndicator = me && !me.bioId + return ( <> @@ -50,10 +52,7 @@ export default function OffCanvas ({ me, dropNavKey }) { profile - {me && !me.bioId && -
- {' '} -
} + {profileIndicator && }