Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1348 | Canonical URL field to have fixed he…
Browse files Browse the repository at this point in the history
…lper text
  • Loading branch information
snyaggarwal committed Sep 9, 2022
1 parent 1a10465 commit 858ca0e
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -15,7 +15,6 @@ const ConfigurationForm = props => {
const [customValidationSchema, setCustomValidationSchema] = React.useState('None')
const [publicAccess, setPublicAccess] = React.useState('View')
const [canonicalURL, setCanonicalURL] = React.useState('')
const [helperText, setHelperText] = React.useState({})
const onChange = (id, value, setter, propogateValue) => {
setter(value)
props.onChange(toState({[id]: propogateValue === undefined ? value : propogateValue}))
Expand Down Expand Up @@ -187,9 +186,7 @@ const ConfigurationForm = props => {
value={canonicalURL}
onChange={event => onChange('canonical_url', event.target.value || '', setCanonicalURL)}
fullWidth
helperText={helperText.canonicalURL}
onFocus={() => setHelperText({...helperText, canonicalURL: configs.canonicalURL.helperText})}
onBlur={() => setHelperText(omit(helperText, 'canonicalURL'))}
helperText={configs.canonicalURL.helperText}
/>
<FormTooltip title={configs.canonicalURL.tooltip} style={{marginLeft: '10px'}} />
</div>
Expand Down

0 comments on commit 858ca0e

Please sign in to comment.