From 025cc89f2ebc4ffe40f3d3bc35371732d5ab2818 Mon Sep 17 00:00:00 2001 From: z0ccc Date: Mon, 4 Oct 2021 23:24:34 -0400 Subject: [PATCH] Moved exports to bottom of file --- frontend/src/utils/common.js | 4 ++-- frontend/src/utils/connection.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 };