Skip to content

Commit

Permalink
fix: practice mode swipe card bottom buttons (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
gajjartejas authored Oct 24, 2023
1 parent 4902608 commit 2ebf554
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions app/screens/HomeIntro/LearnCharsCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -543,15 +543,17 @@ const LearnCharsCard = ({ navigation, route }: Props) => {
</>
)}

{isLearningMode && (
{!practiceMode && (
<View style={[styles.bottomButtons, insets.bottom > 0 && styles.bottomMargin]}>
<Button
mode="contained-tonal"
icon={autoSwiping ? 'stop' : 'play'}
labelStyle={[styles.playPauseButtonLabel]}
onPress={onToggleAutoSwipe}>
{autoSwiping ? t('learnCharsCardScreen.stop') : t('learnCharsCardScreen.play')}
</Button>
{isLearningMode && (
<Button
mode="contained-tonal"
icon={autoSwiping ? 'stop' : 'play'}
labelStyle={[styles.playPauseButtonLabel]}
onPress={onToggleAutoSwipe}>
{autoSwiping ? t('learnCharsCardScreen.stop') : t('learnCharsCardScreen.play')}
</Button>
)}

<IconButton
style={[styles.randomModeIconButton, { backgroundColor: `${color}30` }]}
Expand Down

0 comments on commit 2ebf554

Please sign in to comment.