Skip to content

Commit

Permalink
fix(wallet-mobile): mnemonic suggestions buttons styles (#3756)
Browse files Browse the repository at this point in the history
Co-authored-by: Javier Bueno <javierbueno@laptopjavi.local>
  • Loading branch information
banklesss and Javier Bueno authored Dec 10, 2024
1 parent 21fd224 commit e81d049
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {useSetupWallet} from '@yoroi/setup-wallet'
import {useTheme} from '@yoroi/theme'
import {validateMnemonic} from 'bip39'
import * as React from 'react'
import {Dimensions, Keyboard, Platform, StyleSheet, Text, View} from 'react-native'
import {Dimensions, Keyboard, Platform, StyleSheet, Text, TouchableOpacity, View} from 'react-native'
import {FlatList, ScrollView} from 'react-native-gesture-handler'
import {SafeAreaView} from 'react-native-safe-area-context'

Expand Down Expand Up @@ -242,7 +242,11 @@ const WordSuggestionList = ({

const WordSuggestionButton = ({title, onPress}: {title: string; onPress: () => void}) => {
const {styles} = useStyles()
return <Button onPress={onPress} style={styles.suggestion} title={title} />
return (
<TouchableOpacity style={styles.suggestion} onPress={onPress}>
<Text style={styles.suggestionText}>{title}</Text>
</TouchableOpacity>
)
}

const useBold = () => {
Expand Down Expand Up @@ -297,11 +301,17 @@ const useStyles = () => {
paddingBottom: dynamicPaddingBottom,
},
suggestion: {
...atoms.px_lg,
...atoms.py_sm,
borderColor: color.primary_300,
borderWidth: 2,
borderRadius: 8,
backgroundColor: 'transparent',
},
suggestionText: {
color: color.text_primary_medium,
...atoms.body_1_lg_regular,
},
suggestionArea: {
backgroundColor: color.bg_color_max,
borderColor: color.gray_200,
Expand Down

0 comments on commit e81d049

Please sign in to comment.