diff --git a/src/FLAD/components/AnimatedParalax.tsx b/src/FLAD/components/AnimatedParalax.tsx index 67d530d..bba9f4a 100644 --- a/src/FLAD/components/AnimatedParalax.tsx +++ b/src/FLAD/components/AnimatedParalax.tsx @@ -3,7 +3,7 @@ import Animated, { interpolate, SensorType, useAnimatedSensor, useAnimatedStyle const halfPi = Math.PI / 2; -const AnimatedParalax = ({ }) => { +export default function AnimatedParalax() { const sensor = useAnimatedSensor(SensorType.ROTATION); const styleAniamatedImage = useAnimatedStyle(() => { const { pitch, roll } = sensor.sensor.value; @@ -42,6 +42,3 @@ const AnimatedParalax = ({ }) => { ); }; - - -export default AnimatedParalax; \ No newline at end of file diff --git a/src/FLAD/package.json b/src/FLAD/package.json index 22ea1f9..390d6c6 100644 --- a/src/FLAD/package.json +++ b/src/FLAD/package.json @@ -9,7 +9,7 @@ "web": "expo start --web" }, "dependencies": { - "@react-native-async-storage/async-storage": "^1.17.11", + "@react-native-async-storage/async-storage": "~1.17.3", "@react-navigation/bottom-tabs": "^6.5.4", "@react-navigation/native": "^6.1.4", "@react-navigation/native-stack": "^6.9.8", diff --git a/src/FLAD/screens/Favorite.tsx b/src/FLAD/screens/Favorite.tsx index e796f9e..77f92eb 100644 --- a/src/FLAD/screens/Favorite.tsx +++ b/src/FLAD/screens/Favorite.tsx @@ -10,7 +10,7 @@ import { SharedElement } from 'react-navigation-shared-element'; import { GraphicalCharterDark } from '../assets/GraphicalCharterDark'; import { GraphicalCharterLight } from '../assets/GraphicalCharterLight'; -export default function favoritePage() { +export default function FavoritePage() { //Dark Mode const isDark = useSelector(state => state.userReducer.dark); const style = isDark ? GraphicalCharterDark : GraphicalCharterLight; diff --git a/src/FLAD/screens/LoginPage.tsx b/src/FLAD/screens/LoginPage.tsx index 86749d4..8dd07df 100644 --- a/src/FLAD/screens/LoginPage.tsx +++ b/src/FLAD/screens/LoginPage.tsx @@ -14,7 +14,7 @@ const DismissKeyboard = ({ children }) => ( ) -export default function loginPage() { +export default function LoginPage() { const [sound, setSound] = useState(); const [rememberMe, setRememberMe] = useState(false); const navigation = useNavigation(); diff --git a/src/FLAD/screens/SpotDetailsPage.tsx b/src/FLAD/screens/SpotDetailsPage.tsx index c31f6c4..6ab1a62 100644 --- a/src/FLAD/screens/SpotDetailsPage.tsx +++ b/src/FLAD/screens/SpotDetailsPage.tsx @@ -77,11 +77,7 @@ const SpotDetailsPage = ({ route }) => { const id = '0cFS3AMF9Lhj3CNoFvwjvY' const getCurrentTrack = async () => { - try { - theService.getMusicById(id) - } catch (err) { - console.error(err); - } + theService.getMusicById(id); } return ( diff --git a/src/FLAD/services/spotify/spotify.service.ts b/src/FLAD/services/spotify/spotify.service.ts index 12997e9..87a9d37 100644 --- a/src/FLAD/services/spotify/spotify.service.ts +++ b/src/FLAD/services/spotify/spotify.service.ts @@ -65,7 +65,6 @@ export default class SpotifyService implements IspotifyService { } }; throw new Error("not Implemented") - return; } public async searchMusic(text: string): Promise {