Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapawar1 committed Apr 7, 2024
1 parent 2d29e69 commit ef3ec55
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 10 deletions.
12 changes: 8 additions & 4 deletions src/app/(tabs)/author/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,13 @@ function AuthorScreen() {
}, [author]);

const getTextFromHtml = (text: string) => {
return cheerio.load(text).text().trim()
}
return cheerio.load(text).text().trim();
};

return (
<SafeAreaView style={[globalStyles.tabBarContainer, { marginHorizontal: -8 }]}>
<SafeAreaView
style={[globalStyles.tabBarContainer, { marginHorizontal: -8 }]}
>
{isLoading ? (
<ActivityIndicator />
) : (
Expand Down Expand Up @@ -89,7 +91,9 @@ function AuthorScreen() {

{authorInfo?.bio && (
<>
<Text style={globalStyles.body1}>{getTextFromHtml(authorInfo.bio)}</Text>
<Text style={globalStyles.body1}>
{getTextFromHtml(authorInfo.bio)}
</Text>
<HorizontalLine />
</>
)}
Expand Down
4 changes: 3 additions & 1 deletion src/app/(tabs)/genre/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,9 @@ function GenreScreen() {
};

return (
<SafeAreaView style={[globalStyles.tabBarContainer, { paddingHorizontal: 0 }]}>
<SafeAreaView
style={[globalStyles.tabBarContainer, { paddingHorizontal: 0 }]}
>
<View style={styles.container}>
<View style={styles.headerContainer}>
<BackButton
Expand Down
15 changes: 12 additions & 3 deletions src/app/(tabs)/home/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import { router } from 'expo-router';
import { useEffect, useState } from 'react';
import { ActivityIndicator, Pressable, ScrollView, Text, View } from 'react-native';
import {
ActivityIndicator,
Pressable,
ScrollView,
Text,
View,
} from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';

import styles from './styles';
Expand Down Expand Up @@ -55,11 +61,14 @@ function HomeScreen() {
}, [user]);

if (loading) {
return <ActivityIndicator />
return <ActivityIndicator />;
}
return (
<SafeAreaView
style={[globalStyles.tabBarContainer, { marginLeft: -8, marginRight: -32 }]}
style={[
globalStyles.tabBarContainer,
{ marginLeft: -8, marginRight: -32 },
]}
>
<ScrollView
horizontal={false}
Expand Down
2 changes: 1 addition & 1 deletion src/app/(tabs)/settings/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default StyleSheet.create({
flex: 1,
backgroundColor: 'white',
paddingHorizontal: 24,
paddingBottom: 60
paddingBottom: 60,
},
button: {
marginBottom: 32,
Expand Down
2 changes: 1 addition & 1 deletion src/styles/globalStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default StyleSheet.create({
alignItems: 'flex-start',
justifyContent: 'flex-start',
paddingHorizontal: 24,
paddingBottom: 60
paddingBottom: 60,
},
authContainer: {
marginHorizontal: 38,
Expand Down

0 comments on commit ef3ec55

Please sign in to comment.