fix behaviour of modal (#340)

This commit is contained in:
Anton Tranelis 2025-08-27 10:05:42 +02:00 committed by GitHub
parent 7e059d8deb
commit 1b0b51e91a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -260,7 +260,10 @@ export const LocateControl = (): JSX.Element => {
<DialogModal
title='Location found'
isOpened={showLocationModal}
onClose={() => setShowLocationModal(false)}
onClose={() => {
setShowLocationModal(false)
setHasDeclinedModal(true)
}}
showCloseButton={true}
closeOnClickOutside={false}
className='tw:bottom-1/3 tw:mx-4 tw:sm:mx-auto'