diff --git a/src/components/GeolocRequest.vue b/src/components/GeolocButton.vue similarity index 55% rename from src/components/GeolocRequest.vue rename to src/components/GeolocButton.vue index 5afb95c..ac1ce43 100644 --- a/src/components/GeolocRequest.vue +++ b/src/components/GeolocButton.vue @@ -4,9 +4,11 @@ import { useGeolocation } from "@vueuse/core"; import RepButton from "./RepButton.vue"; import { computed, ref } from "vue"; -const { coords } = useGeolocation(); const { getRep, setRep } = useRepStore(); +const { coords } = useGeolocation({ + enableHighAccuracy: true, +}); const isFetching = ref(false); const lastError = ref(""); @@ -31,22 +33,15 @@ async function handleGeolocClick() { diff --git a/src/components/RepForm.vue b/src/components/RepForm.vue new file mode 100644 index 0000000..fac9b34 --- /dev/null +++ b/src/components/RepForm.vue @@ -0,0 +1,31 @@ + + + diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index c3deb7c..d15d73d 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -1,5 +1,5 @@