mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-04-20 08:51:21 +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) => {
|
.then((response) => {
|
||||||
console.log(JSON.stringify(response.data));
|
// console.log(JSON.stringify(response.data));
|
||||||
return response.data;
|
return response.data;
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
|
|
@ -3,10 +3,6 @@ import styles from "../../styles";
|
||||||
import { View, Text } from "react-native";
|
import { View, Text } from "react-native";
|
||||||
import { useSelector } from "react-redux";
|
import { useSelector } from "react-redux";
|
||||||
import { RootState } from "../../features/redux/Store/Store";
|
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";
|
import AnimatedContainer from "../../components/AnimatedContainer/AnimatedContainer";
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
|
|
|
@ -7,7 +7,6 @@ import {
|
||||||
NativeSyntheticEvent,
|
NativeSyntheticEvent,
|
||||||
TextInputChangeEventData,
|
TextInputChangeEventData,
|
||||||
} from "react-native";
|
} from "react-native";
|
||||||
import { useSelector, useDispatch } from "react-redux";
|
|
||||||
import { colors } from "../../styles";
|
import { colors } from "../../styles";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import Button from "../../components/Button/Button";
|
import Button from "../../components/Button/Button";
|
||||||
|
|
|
@ -1,14 +1,8 @@
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import styles from "../../styles";
|
import styles from "../../styles";
|
||||||
import { View, Text, ActivityIndicator } from "react-native";
|
import { View, Text, ActivityIndicator } from "react-native";
|
||||||
import Button from "../../components/Button/Button";
|
import { TokenRefresh, UserInfo } from "../../components/Api/Api";
|
||||||
import { TokenRefresh, UserInfo, UserLogin } from "../../components/Api/Api";
|
import { useDispatch } from "react-redux";
|
||||||
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 { colors } from "../../styles";
|
import { colors } from "../../styles";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { useNavigation } from "@react-navigation/native";
|
import { useNavigation } from "@react-navigation/native";
|
||||||
|
@ -19,8 +13,6 @@ import AnimatedContainer from "../../components/AnimatedContainer/AnimatedContai
|
||||||
export default function Revalidation() {
|
export default function Revalidation() {
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
const navigation = useNavigation<RootDrawerParamList>();
|
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");
|
const [state, setState] = useState("Checking for existing session");
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setState("Previous session found");
|
setState("Previous session found");
|
||||||
|
|
Loading…
Add table
Reference in a new issue