Biopage userheader popover (#1198)
* Issue #1180: userheader popover on bio page * Added import for ItemPopover in user-header.js * fix linting --------- Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
This commit is contained in:
parent
26fe7fce33
commit
dc59153663
|
@ -29,6 +29,7 @@ import NostrIcon from '@/svgs/nostr.svg'
|
||||||
import GithubIcon from '@/svgs/github-fill.svg'
|
import GithubIcon from '@/svgs/github-fill.svg'
|
||||||
import TwitterIcon from '@/svgs/twitter-fill.svg'
|
import TwitterIcon from '@/svgs/twitter-fill.svg'
|
||||||
import { UNKNOWN_LINK_REL, MEDIA_URL } from '@/lib/constants'
|
import { UNKNOWN_LINK_REL, MEDIA_URL } from '@/lib/constants'
|
||||||
|
import ItemPopover from './item-popover'
|
||||||
|
|
||||||
export default function UserHeader ({ user }) {
|
export default function UserHeader ({ user }) {
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
@ -284,7 +285,11 @@ function HeaderHeader ({ user }) {
|
||||||
</Button>
|
</Button>
|
||||||
<div className='d-flex flex-column mt-1 ms-0'>
|
<div className='d-flex flex-column mt-1 ms-0'>
|
||||||
<small className='text-muted d-flex-inline'>stacking since: {user.since
|
<small className='text-muted d-flex-inline'>stacking since: {user.since
|
||||||
? <Link href={`/items/${user.since}`} className='ms-1'>#{user.since}</Link>
|
? (
|
||||||
|
<ItemPopover id={user.since}>
|
||||||
|
<Link href={`/items/${user.since}`} className='ms-1'>#{user.since}</Link>
|
||||||
|
</ItemPopover>
|
||||||
|
)
|
||||||
: <span>never</span>}
|
: <span>never</span>}
|
||||||
</small>
|
</small>
|
||||||
{user.optional.maxStreak !== null &&
|
{user.optional.maxStreak !== null &&
|
||||||
|
|
Loading…
Reference in New Issue