fix missing advanced options in bounty/discussion form

This commit is contained in:
keyan 2023-05-16 13:30:19 -05:00
parent 0effc065c6
commit 9d31d56ec0
2 changed files with 3 additions and 4 deletions

View File

@ -17,7 +17,6 @@ export function BountyForm ({
bountyLabel = 'bounty',
textLabel = 'text',
buttonText = 'post',
adv,
handleSubmit,
children
}) {
@ -112,7 +111,7 @@ export function BountyForm ({
: null
}
/>
{adv && <AdvPostForm edit={!!item} />}
<AdvPostForm edit={!!item} />
<div className='mt-3'>
{item
? (

View File

@ -16,7 +16,7 @@ import { SubSelectInitial } from './sub-select-form'
export function DiscussionForm ({
item, sub, editThreshold, titleLabel = 'title',
textLabel = 'text', buttonText = 'post',
adv, handleSubmit, children
handleSubmit, children
}) {
const router = useRouter()
const client = useApolloClient()
@ -98,7 +98,7 @@ export function DiscussionForm ({
? <div className='text-muted font-weight-bold'><Countdown date={editThreshold} /></div>
: null}
/>
{adv && <AdvPostForm edit={!!item} />}
<AdvPostForm edit={!!item} />
<div className='mt-3'>
{item
? (