Skip to content

Commit

Permalink
Merge pull request #535 from periodo/easier-place-choosing
Browse files Browse the repository at this point in the history
Easier place choosing
  • Loading branch information
rybesh authored Oct 23, 2023
2 parents c9f67af + 133bacf commit 866dfe6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const h = require('react-hyperscript')
, { Box, HelpText, InputBlock, Label } = require('periodo-ui')
, { PlacesSelect } = require('periodo-ui')
, { PlacesSelect, ExternalLink } = require('periodo-ui')

const SpatialCoverageForm = ({
onValueChange,
Expand Down Expand Up @@ -31,8 +31,12 @@ const SpatialCoverageForm = ({
htmlFor: 'coverage-area',
}, 'Coverage area'),

h(HelpText,
'Set of places that approximate the area of spatial coverage'),
h(HelpText, {}, [
'Set of places that approximate the area of spatial coverage. ',
"If you cannot find a suitable place, ",
h(ExternalLink, { href: "https://perio.do/contact/" }, "contact us "),
"and we can add it."
]),

h(PlacesSelect, {
onChange: places => onValueChange({ spatialCoverage: places }),
Expand Down
2 changes: 1 addition & 1 deletion modules/periodo-ui/src/components/PlaceSuggest.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ exports.PlaceSuggest = ({
},
multiSection: true,
getSuggestions: getSuggestions(gazetteers),
shouldRenderSuggestions: value => value.trim().length > 0,
shouldRenderSuggestions: () => true,
highlightFirstSuggestion: false,
renderSectionTitle,
renderSuggestion: (item, info) => renderSuggestion(
Expand Down

0 comments on commit 866dfe6

Please sign in to comment.