mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2024-11-17 06:19:25 +08:00
Removed unused imports and commented out debug logs
This commit is contained in:
parent
278bb72ec1
commit
fb7b77efb7
4 changed files with 3 additions and 16 deletions
|
@ -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) => {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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<RootDrawerParamList>();
|
||||
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");
|
||||
|
|
Loading…
Reference in a new issue