Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ProchaLu committed Nov 1, 2024
1 parent 185bb63 commit 8793408
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
11 changes: 3 additions & 8 deletions app/(tabs)/profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ import { colors } from '../../constants/colors';
import type { LogoutResponseBodyGet } from '../api/logout+api';
import type { UserResponseBodyGet } from '../api/user+api';

// type Props = {
// user: User;
// };

const styles = StyleSheet.create({
container: {
flex: 1,
Expand Down Expand Up @@ -48,11 +44,10 @@ export default function ProfileScreen() {
Alert.alert('Error', body.error, [{ text: 'OK' }]);
return router.push('/(auth)');
}

getUser().catch((error) => {
console.error(error);
});
}
getUser().catch((error) => {
console.error(error);
});
}, []),
);

Expand Down
6 changes: 3 additions & 3 deletions app/notes/[noteId].tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { router, useFocusEffect, useLocalSearchParams } from 'expo-router';
import { useFocusEffect, useLocalSearchParams } from 'expo-router';
import { useCallback, useState } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { colors } from '../../constants/colors';
Expand All @@ -22,7 +22,7 @@ const styles = StyleSheet.create({
color: colors.text,
textAlign: 'center',
},
content: {
textContent: {
fontSize: 16,
fontFamily: 'Poppins_400Regular',
color: colors.textSecondary,
Expand Down Expand Up @@ -67,7 +67,7 @@ export default function NotePage() {
<View style={styles.container}>
<View style={styles.textContainer}>
<Text style={styles.title}>{title}</Text>
<Text style={styles.content}>{textContent}</Text>
<Text style={styles.textContent}>{textContent}</Text>
</View>
</View>
);
Expand Down

0 comments on commit 8793408

Please sign in to comment.