minor fixes

This commit is contained in:
Clément Le Bihan
2024-01-09 17:13:36 +01:00
parent b5b94adc83
commit dd09827d08
6 changed files with 130 additions and 132 deletions
+6 -4
View File
@@ -97,7 +97,7 @@ const ScoreModal = (props: ScoreModalProps) => {
type="outlined"
title={translate('playAgain')}
onPress={() =>
navigation.dispatch(StackActions.replace('Play', { songId: props.songId }))
navigation.replace('Play', { songId: props.songId })
}
/>
<ButtonBase
@@ -105,9 +105,11 @@ const ScoreModal = (props: ScoreModalProps) => {
icon={Play}
type="filled"
title={translate('menuMusic')}
onPress={() =>
navigation.canGoBack() ? navigation.goBack() : navigation.navigate('Home')
}
onPress={() => {
navigation.canGoBack()
? navigation.goBack()
: navigation.replace('Tabs', { screen: 'Home' });
}}
/>
</Row>
</Column>
-2
View File
@@ -194,7 +194,6 @@ function MusicListComponent({
// FlatList: Renders list efficiently, only rendering visible items.
return (
<FlatList
nestedScrollEnabled
style={styles.container}
ListHeaderComponent={headerComponent}
data={musicListState.displayedMusics}
@@ -225,7 +224,6 @@ const styles = StyleSheet.create({
flex: 1,
gap: 2,
borderRadius: 10,
overflow: 'hidden',
},
footerContainer: {
height: 60,