From 8cf15c7ca966ef873b02bbf5a977effe89375580 Mon Sep 17 00:00:00 2001 From: dadalmeida1 Date: Mon, 10 Apr 2023 16:01:26 +0200 Subject: [PATCH] sync b --- src/FLAD/navigation/Navigation.tsx | 3 +-- src/FLAD/screens/Register.tsx | 3 +++ src/FLAD/screens/Setting.tsx | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/FLAD/navigation/Navigation.tsx b/src/FLAD/navigation/Navigation.tsx index 1af1869..6eab3b0 100644 --- a/src/FLAD/navigation/Navigation.tsx +++ b/src/FLAD/navigation/Navigation.tsx @@ -54,7 +54,6 @@ const tokenSend: string = useSelector(state => state.userReducer.userFladToken); const locationresp = await Location.getCurrentPositionAsync({}); // send location to server if(currentMusic){ - const body: Record = { longitude: locationresp.coords.longitude, latitude: locationresp.coords.latitude, @@ -91,7 +90,7 @@ const tokenSend: string = useSelector(state => state.userReducer.userFladToken); console.log(error); } }; - const interval = setInterval(sendLocationUpdate, 5000); + const interval = setInterval(sendLocationUpdate, 30000); return () => { clearInterval(interval); }; diff --git a/src/FLAD/screens/Register.tsx b/src/FLAD/screens/Register.tsx index 1e675ba..bea26fa 100644 --- a/src/FLAD/screens/Register.tsx +++ b/src/FLAD/screens/Register.tsx @@ -56,10 +56,13 @@ export default function InscriptionPage() { name: username, idFlad: "9835698" }; + //@ts-ignore dispatch(registerUser(credentials)) + playSound() } + const getTokens2 = async () => { try { const redirectUri = AuthSession.makeRedirectUri(); diff --git a/src/FLAD/screens/Setting.tsx b/src/FLAD/screens/Setting.tsx index d312ee0..d32bfc3 100644 --- a/src/FLAD/screens/Setting.tsx +++ b/src/FLAD/screens/Setting.tsx @@ -332,6 +332,7 @@ export default function Setting() { +