fix missing advanced options in bounty/discussion form
This commit is contained in:
parent
0effc065c6
commit
9d31d56ec0
|
@ -17,7 +17,6 @@ export function BountyForm ({
|
||||||
bountyLabel = 'bounty',
|
bountyLabel = 'bounty',
|
||||||
textLabel = 'text',
|
textLabel = 'text',
|
||||||
buttonText = 'post',
|
buttonText = 'post',
|
||||||
adv,
|
|
||||||
handleSubmit,
|
handleSubmit,
|
||||||
children
|
children
|
||||||
}) {
|
}) {
|
||||||
|
@ -112,7 +111,7 @@ export function BountyForm ({
|
||||||
: null
|
: null
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
{adv && <AdvPostForm edit={!!item} />}
|
<AdvPostForm edit={!!item} />
|
||||||
<div className='mt-3'>
|
<div className='mt-3'>
|
||||||
{item
|
{item
|
||||||
? (
|
? (
|
||||||
|
|
|
@ -16,7 +16,7 @@ import { SubSelectInitial } from './sub-select-form'
|
||||||
export function DiscussionForm ({
|
export function DiscussionForm ({
|
||||||
item, sub, editThreshold, titleLabel = 'title',
|
item, sub, editThreshold, titleLabel = 'title',
|
||||||
textLabel = 'text', buttonText = 'post',
|
textLabel = 'text', buttonText = 'post',
|
||||||
adv, handleSubmit, children
|
handleSubmit, children
|
||||||
}) {
|
}) {
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const client = useApolloClient()
|
const client = useApolloClient()
|
||||||
|
@ -98,7 +98,7 @@ export function DiscussionForm ({
|
||||||
? <div className='text-muted font-weight-bold'><Countdown date={editThreshold} /></div>
|
? <div className='text-muted font-weight-bold'><Countdown date={editThreshold} /></div>
|
||||||
: null}
|
: null}
|
||||||
/>
|
/>
|
||||||
{adv && <AdvPostForm edit={!!item} />}
|
<AdvPostForm edit={!!item} />
|
||||||
<div className='mt-3'>
|
<div className='mt-3'>
|
||||||
{item
|
{item
|
||||||
? (
|
? (
|
||||||
|
|
Loading…
Reference in New Issue