Corrige diversos toasts
This commit is contained in:
@@ -4,4 +4,9 @@ export async function autoCompleteAddress(address:string) {
|
||||
|
||||
const response = await instance.get(`https://api.geoapify.com/v1/geocode/autocomplete?text=${address}&apiKey=ee574aacff6f440a84378bbbf7e2f20d`);
|
||||
return response.data.features;
|
||||
}
|
||||
|
||||
export async function closeToast(setShowToast: React.Dispatch<React.SetStateAction<boolean>>) {
|
||||
setShowToast(false)
|
||||
window.history.replaceState({}, document.title)
|
||||
}
|
||||
Reference in New Issue
Block a user