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', 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
? ( ? (

View File

@ -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
? ( ? (