Skip to content

Commit

Permalink
Properly locate handler to trigger custom AoI modal
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel da Silva <[email protected]>
  • Loading branch information
nerik and danielfdsilva committed Oct 19, 2023
1 parent 496301b commit d3d37bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/scripts/components/analysis/define/aoi-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default function AoiSelector({
const [aoiModalRevealed, setAoIModalRevealed] = useState(false);

return (
<Fold>
<Fold>
<AoIUploadModal
setFeatureCollection={setFeatureCollection}
revealed={aoiModalRevealed}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,8 @@ function CustomAoI({ onConfirm }: CustomAoIProps) {
const [aoiModalRevealed, setAoIModalRevealed] = useState(false);
return (
<>
<SelectorButton>
<CollecticonUpload2
title='Upload geoJSON'
meaningful
onClick={() => setAoIModalRevealed(true)}
/>
<SelectorButton onClick={() => setAoIModalRevealed(true)}>
<CollecticonUpload2 title='Upload geoJSON' meaningful />
</SelectorButton>
<CustomAoIModal
revealed={aoiModalRevealed}
Expand Down

0 comments on commit d3d37bd

Please sign in to comment.