diff --git a/frontend/src/utils/common.js b/frontend/src/utils/common.js index a72cc3a..c4fa9da 100644 --- a/frontend/src/utils/common.js +++ b/frontend/src/utils/common.js @@ -1,5 +1,3 @@ -export { fetchAPI, checkWebWorker, getWebWorker }; - // Gets location values const fetchAPI = (setData) => { fetch('https://api.vytal.io/ip/') @@ -23,3 +21,5 @@ const getWebWorker = () => { } return w; }; + +export { fetchAPI, checkWebWorker, getWebWorker }; diff --git a/frontend/src/utils/connection.js b/frontend/src/utils/connection.js index 5a357e6..ae099a0 100644 --- a/frontend/src/utils/connection.js +++ b/frontend/src/utils/connection.js @@ -1,5 +1,3 @@ -export { getMap, getConnection, getLocation }; - const getMap = (data) => `https://maps.googleapis.com/maps/api/staticmap?center=${data.lat},${data.lon}&markers=color:red%7Clabel:%7C${data.lat},${data.lon}&size=500x200&zoom=10&key=AIzaSyB-YN-X8PGBSPd7NOaQu4csVhgJUnF3ZGk`; @@ -86,3 +84,5 @@ const getConnection = (data) => { }, ]; }; + +export { getMap, getConnection, getLocation };