diff --git a/src/components/Api/Api.tsx b/src/components/Api/Api.tsx index 927e20e..f6c5975 100644 --- a/src/components/Api/Api.tsx +++ b/src/components/Api/Api.tsx @@ -108,7 +108,7 @@ export async function UserInfo() { }, }) .then((response) => { - console.log(JSON.stringify(response.data)); + // console.log(JSON.stringify(response.data)); return response.data; }) .catch((error) => { diff --git a/src/routes/Home/Home.tsx b/src/routes/Home/Home.tsx index 7fe3a1c..944d131 100644 --- a/src/routes/Home/Home.tsx +++ b/src/routes/Home/Home.tsx @@ -3,10 +3,6 @@ import styles from "../../styles"; import { View, Text } from "react-native"; import { useSelector } from "react-redux"; import { RootState } from "../../features/redux/Store/Store"; -import Button from "../../components/Button/Button"; -import { UserLogin } from "../../components/Api/Api"; -import { colors } from "../../styles"; -import axios from "axios"; import AnimatedContainer from "../../components/AnimatedContainer/AnimatedContainer"; export default function Home() { diff --git a/src/routes/Register/Register.tsx b/src/routes/Register/Register.tsx index c893513..8e0a567 100644 --- a/src/routes/Register/Register.tsx +++ b/src/routes/Register/Register.tsx @@ -7,7 +7,6 @@ import { NativeSyntheticEvent, TextInputChangeEventData, } from "react-native"; -import { useSelector, useDispatch } from "react-redux"; import { colors } from "../../styles"; import { useState } from "react"; import Button from "../../components/Button/Button"; diff --git a/src/routes/Revalidation/Revalidation.tsx b/src/routes/Revalidation/Revalidation.tsx index 46e8da6..7117573 100644 --- a/src/routes/Revalidation/Revalidation.tsx +++ b/src/routes/Revalidation/Revalidation.tsx @@ -1,14 +1,8 @@ import * as React from "react"; import styles from "../../styles"; import { View, Text, ActivityIndicator } from "react-native"; -import Button from "../../components/Button/Button"; -import { TokenRefresh, UserInfo, UserLogin } from "../../components/Api/Api"; -import axios from "axios"; -import { useDispatch, useSelector } from "react-redux"; -import { RootState } from "../../features/redux/Store/Store"; -import AsyncStorage from "@react-native-async-storage/async-storage"; - -import { MotiView } from "moti"; +import { TokenRefresh, UserInfo } from "../../components/Api/Api"; +import { useDispatch } from "react-redux"; import { colors } from "../../styles"; import { useEffect, useState } from "react"; import { useNavigation } from "@react-navigation/native"; @@ -19,8 +13,6 @@ import AnimatedContainer from "../../components/AnimatedContainer/AnimatedContai export default function Revalidation() { const dispatch = useDispatch(); const navigation = useNavigation(); - const creds = useSelector((state: RootState) => state.auth.creds); - console.log(JSON.stringify(creds)); const [state, setState] = useState("Checking for existing session"); useEffect(() => { setState("Previous session found");