Fix again code smells 🐛
continuous-integration/drone/push Build is passing Details

BackupApi
Emre KARTAL 2 years ago
parent cbadaf9639
commit 3f24541eb0

@ -72,8 +72,6 @@ const MusicDetail = ({ route }) => {
//@ts-ignore //@ts-ignore
await sound.stopAsync(); await sound.stopAsync();
} }
else {
}
}; };
useEffect(() => { useEffect(() => {
return sound ? () => { return sound ? () => {

@ -3,12 +3,11 @@ import AsyncStorage from '@react-native-async-storage/async-storage';
import { View, StyleSheet, Text, Image, TouchableWithoutFeedback, Keyboard, TouchableOpacity, SafeAreaView } from 'react-native'; import { View, StyleSheet, Text, Image, TouchableWithoutFeedback, Keyboard, TouchableOpacity, SafeAreaView } from 'react-native';
import { Svg, Path } from 'react-native-svg'; import { Svg, Path } from 'react-native-svg';
import { useNavigation } from "@react-navigation/native"; import { useNavigation } from "@react-navigation/native";
import { useDispatch } from 'react-redux'; import { useDispatch, useSelector } from 'react-redux';
import normalize from '../components/Normalize'; import normalize from '../components/Normalize';
import { ScrollView, Switch, TextInput } from 'react-native-gesture-handler'; import { ScrollView, Switch, TextInput } from 'react-native-gesture-handler';
import CardMusic from '../components/CardMusic'; import CardMusic from '../components/CardMusic';
import { ChangeMode, DeleteToken } from '../redux/thunk/authThunk'; import { ChangeMode, DeleteToken } from '../redux/thunk/authThunk';
import { useSelector } from 'react-redux';
import { GraphicalCharterDark } from '../assets/GraphicalCharterDark'; import { GraphicalCharterDark } from '../assets/GraphicalCharterDark';
import { GraphicalCharterLight } from '../assets/GraphicalCharterLight'; import { GraphicalCharterLight } from '../assets/GraphicalCharterLight';
@ -327,7 +326,7 @@ export default function Setting() {
</View> </View>
<View style={styles.musicActually}> <View style={styles.musicActually}>
<CardMusic image="{currentMusic.image}" title="{currentMusic.title}" description="PNL" /> <CardMusic image={currentMusic.image} title={currentMusic.title} description="PNL" id='1' />
<Image source={require("../assets/images/FladyShadow.png")} style={styles.mascot} /> <Image source={require("../assets/images/FladyShadow.png")} style={styles.mascot} />
</View> </View>

@ -37,7 +37,7 @@ export default function SettingProfil() {
const pickImage = async () => { const pickImage = async () => {
let result = await ImagePicker.launchImageLibraryAsync({ await ImagePicker.launchImageLibraryAsync({
mediaTypes: ImagePicker.MediaTypeOptions.All, mediaTypes: ImagePicker.MediaTypeOptions.All,
allowsEditing: true, allowsEditing: true,
aspect: [4, 3], aspect: [4, 3],

@ -72,7 +72,6 @@ export default function Login() {
}, },
body: `grant_type=authorization_code&code=${authorizationCode}&redirect_uri=https://auth.expo.io/@anonymous/FLAD-7eafd441-fd6b-4fb6-924c-ec2b0ed5ce6d`, body: `grant_type=authorization_code&code=${authorizationCode}&redirect_uri=https://auth.expo.io/@anonymous/FLAD-7eafd441-fd6b-4fb6-924c-ec2b0ed5ce6d`,
}); });
const responseJson = await response.json()
} catch (err) { } catch (err) {
console.error(err) console.error(err)
} }

@ -36,12 +36,6 @@ export class RequestHandler {
} }
catch(error : any){ catch(error : any){
const errorMessage = error.response.data?.error?.message; const errorMessage = error.response.data?.error?.message;
if (errorMessage === "Invalid access token" || errorMessage === "The access token expired") {
throw new Error;
}
else{
throw new Error;
}
} }
} }
} }

Loading…
Cancel
Save