Fix highlighted flag is under 'isHighlighted'
This commit is contained in:
@ -37,7 +37,7 @@ const checkValidity = [
|
|||||||
'url',
|
'url',
|
||||||
'logo',
|
'logo',
|
||||||
'company',
|
'company',
|
||||||
'highlight'
|
'isHighlighted'
|
||||||
];
|
];
|
||||||
const hightlightCopy = `
|
const hightlightCopy = `
|
||||||
Highlight my post to make it stand out. (+$50)
|
Highlight my post to make it stand out. (+$50)
|
||||||
@ -99,7 +99,7 @@ export default contain({
|
|||||||
url,
|
url,
|
||||||
logo,
|
logo,
|
||||||
company,
|
company,
|
||||||
highlight,
|
isHighlighted,
|
||||||
isFullStackCert,
|
isFullStackCert,
|
||||||
isFrontEndCert,
|
isFrontEndCert,
|
||||||
isRemoteOk
|
isRemoteOk
|
||||||
@ -113,7 +113,7 @@ export default contain({
|
|||||||
url: formatValue(url, isValidURL),
|
url: formatValue(url, isValidURL),
|
||||||
logo: formatValue(logo, isValidURL),
|
logo: formatValue(logo, isValidURL),
|
||||||
company: formatValue(company, makeRequired(isAscii)),
|
company: formatValue(company, makeRequired(isAscii)),
|
||||||
highlight: formatValue(highlight, null, 'bool'),
|
isHighlighted: formatValue(isHighlighted, null, 'bool'),
|
||||||
isFullStackCert: formatValue(isFullStackCert, null, 'bool'),
|
isFullStackCert: formatValue(isFullStackCert, null, 'bool'),
|
||||||
isFrontEndCert: formatValue(isFrontEndCert, null, 'bool'),
|
isFrontEndCert: formatValue(isFrontEndCert, null, 'bool'),
|
||||||
isRemoteOk: formatValue(isRemoteOk, null, 'bool')
|
isRemoteOk: formatValue(isRemoteOk, null, 'bool')
|
||||||
@ -136,7 +136,7 @@ export default contain({
|
|||||||
url: PropTypes.object,
|
url: PropTypes.object,
|
||||||
logo: PropTypes.object,
|
logo: PropTypes.object,
|
||||||
company: PropTypes.object,
|
company: PropTypes.object,
|
||||||
highlight: PropTypes.object,
|
isHighlighted: PropTypes.object,
|
||||||
isFullStackCert: PropTypes.object,
|
isFullStackCert: PropTypes.object,
|
||||||
isFrontEndCert: PropTypes.object,
|
isFrontEndCert: PropTypes.object,
|
||||||
isRemoteOk: PropTypes.object
|
isRemoteOk: PropTypes.object
|
||||||
@ -172,7 +172,7 @@ export default contain({
|
|||||||
url,
|
url,
|
||||||
logo,
|
logo,
|
||||||
company,
|
company,
|
||||||
highlight,
|
isHighlighted,
|
||||||
isFullStackCert,
|
isFullStackCert,
|
||||||
isFrontEndCert,
|
isFrontEndCert,
|
||||||
isRemoteOk
|
isRemoteOk
|
||||||
@ -188,7 +188,7 @@ export default contain({
|
|||||||
url: uriInSingleQuotedAttr(url.value),
|
url: uriInSingleQuotedAttr(url.value),
|
||||||
logo: uriInSingleQuotedAttr(logo.value),
|
logo: uriInSingleQuotedAttr(logo.value),
|
||||||
company: inHTMLData(company.value),
|
company: inHTMLData(company.value),
|
||||||
highlight: !!highlight.value,
|
isHighlighted: !!isHighlighted.value,
|
||||||
isFrontEndCert: !!isFrontEndCert.value,
|
isFrontEndCert: !!isFrontEndCert.value,
|
||||||
isFullStackCert: !!isFullStackCert.value,
|
isFullStackCert: !!isFullStackCert.value,
|
||||||
isRemoteOk: !!isRemoteOk.value
|
isRemoteOk: !!isRemoteOk.value
|
||||||
@ -228,7 +228,7 @@ export default contain({
|
|||||||
url,
|
url,
|
||||||
logo,
|
logo,
|
||||||
company,
|
company,
|
||||||
highlight,
|
isHighlighted,
|
||||||
isFrontEndCert,
|
isFrontEndCert,
|
||||||
isFullStackCert,
|
isFullStackCert,
|
||||||
isRemoteOk,
|
isRemoteOk,
|
||||||
@ -337,11 +337,11 @@ export default contain({
|
|||||||
|
|
||||||
<div className='divider' />
|
<div className='divider' />
|
||||||
<Input
|
<Input
|
||||||
checked={ highlight.value }
|
checked={ isHighlighted.value }
|
||||||
label={ hightlightCopy }
|
label={ hightlightCopy }
|
||||||
onChange={
|
onChange={
|
||||||
({ target: { checked } }) => handleForm({
|
({ target: { checked } }) => handleForm({
|
||||||
highlight: !!checked
|
isHighlighted: !!checked
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
type='checkbox'
|
type='checkbox'
|
||||||
|
Reference in New Issue
Block a user