add boost back to posts & fix header problem
This commit is contained in:
parent
d9239a148a
commit
8c5832c3e6
@ -13,7 +13,7 @@ import { useEffect } from 'react'
|
|||||||
import { randInRange } from '../lib/rand'
|
import { randInRange } from '../lib/rand'
|
||||||
|
|
||||||
function WalletSummary ({ me }) {
|
function WalletSummary ({ me }) {
|
||||||
return `${me.sats} \\ ${me.stacked}`
|
return `${me?.sats} \\ ${me?.stacked}`
|
||||||
}
|
}
|
||||||
|
|
||||||
function RefreshableLink ({ href, children, ...props }) {
|
function RefreshableLink ({ href, children, ...props }) {
|
||||||
@ -44,8 +44,8 @@ export default function Header () {
|
|||||||
<link rel='shortcut icon' href={me?.hasNewNotes ? '/favicon-notify.png' : '/favicon.png'} />
|
<link rel='shortcut icon' href={me?.hasNewNotes ? '/favicon-notify.png' : '/favicon.png'} />
|
||||||
</Head>
|
</Head>
|
||||||
<div className='position-relative mr-1'>
|
<div className='position-relative mr-1'>
|
||||||
<NavDropdown className='px-0' title={`@${me.name}`} alignRight>
|
<NavDropdown className='px-0' title={`@${me?.name}`} alignRight>
|
||||||
<Link href={'/' + me.name} passHref>
|
<Link href={'/' + me?.name} passHref>
|
||||||
<NavDropdown.Item>
|
<NavDropdown.Item>
|
||||||
profile
|
profile
|
||||||
{me && !me.bio &&
|
{me && !me.bio &&
|
||||||
|
@ -28,7 +28,7 @@ export function PostForm () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (router.query.type === 'discussion') {
|
if (router.query.type === 'discussion') {
|
||||||
return <DiscussionForm />
|
return <DiscussionForm adv />
|
||||||
} else {
|
} else {
|
||||||
return <LinkForm />
|
return <LinkForm />
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user