Refactor_Expenses #317

Closed
pramod.mahajan wants to merge 247 commits from Refactor_Expenses into Feature_Expense
Showing only changes of commit 99418e4870 - Show all commits

View File

@ -1,4 +1,5 @@
import { useState, useEffect } from 'react';
import showToast from '../services/toastService';
export const usePositionTracker = () => {
const [coords, setCoords] = useState({ latitude: 0, longitude: 0 });
@ -9,7 +10,7 @@ export const usePositionTracker = () => {
setCoords(coords);
},
(error) => {
alert(error.message);
showToast("Please Allow Location","warn");
},
{ enableHighAccuracy: true, timeout: 20000, maximumAge: 1000 }
);