Skip to content

Commit 004239d

Browse files
committed
chore: updated lines file
1 parent 1941d0a commit 004239d

File tree

2 files changed

+27
-32
lines changed

2 files changed

+27
-32
lines changed

template/src/screens/CharacterDetail.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const CharacterDetailScreen = () => {
5959
size={20}
6060
/>
6161
</Box>
62-
<Typography color="primary">Come back</Typography>
62+
<Typography color="primary">Back</Typography>
6363
</Button>
6464
</Box>
6565
</Box>

template/src/screens/Home.tsx

Lines changed: 26 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ const HomeScreen = () => {
6969
);
7070

7171
const getHomeWorldEachItem = useCallback(async () => {
72-
73-
74-
7572
responseListWithoutHomeWorld
7673
.sort((a, b) => (String(a.name) > String(b.name) ? 0 : -1))
7774
.map(async (item) => {
@@ -125,34 +122,34 @@ const HomeScreen = () => {
125122

126123
const { navigate } = useNavigation<ProfileScreenNavigationProp>();
127124

128-
const footerButton = ()=>{
125+
const footerButton = () => {
129126
return (
130127
<Button
131-
my={'sm'}
132-
flexDirection="row"
133-
width={WINDOW_DEVICE_WIDTH * 0.8}
134-
backgroundColor={!hasNextPage ? 'secondary' : 'grayLight'}
135-
disabled>
136-
{isFetching || hasNextPage ? (
137-
<LottieView
138-
source={require('../../assets/spinner.json')}
139-
autoPlay
140-
loop
141-
hardwareAccelerationAndroid={false}
142-
resizeMode="contain"
143-
style={{
144-
height: 40,
145-
width: 40,
146-
}}
147-
/>
148-
) : (
149-
<Typography color={!hasNextPage ? 'primary' : 'secondary'}>
150-
All list is loaded
151-
</Typography>
152-
)}
153-
</Button>
154-
)
155-
}
128+
my={'sm'}
129+
flexDirection="row"
130+
width={WINDOW_DEVICE_WIDTH * 0.8}
131+
backgroundColor={!hasNextPage ? 'secondary' : 'grayLight'}
132+
disabled>
133+
{isFetching || hasNextPage ? (
134+
<LottieView
135+
source={require('../../assets/spinner.json')}
136+
autoPlay
137+
loop
138+
hardwareAccelerationAndroid={false}
139+
resizeMode="contain"
140+
style={{
141+
height: 40,
142+
width: 40,
143+
}}
144+
/>
145+
) : (
146+
<Typography color={!hasNextPage ? 'primary' : 'secondary'}>
147+
All list is loaded
148+
</Typography>
149+
)}
150+
</Button>
151+
);
152+
};
156153
return (
157154
<SafeAreaView style={styles.safeArea}>
158155
<StatusBar barStyle="light-content" />
@@ -229,5 +226,3 @@ const styles = StyleSheet.create({
229226
backgroundColor: theme.colors.backgroundColor,
230227
},
231228
});
232-
233-

0 commit comments

Comments
 (0)