mirror of
https://github.com/status-im/keycard-exit.git
synced 2025-01-09 10:31:57 +00:00
fix touchable area
This commit is contained in:
parent
c582ba65a3
commit
935864ecc5
@ -23,13 +23,13 @@ const Button: FC<ButtonProps> = props => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={[textContainer(), disabled ? style.disabledBtn : null]}>
|
<TouchableOpacity key={label} disabled={disabled} onPress={onChangeFunc} style={[textContainer(), disabled ? style.disabledBtn : null]}>
|
||||||
<TouchableOpacity key={label} disabled={disabled} style={style.button} onPress={onChangeFunc}>
|
<View style={style.button}>
|
||||||
{type == "cancel" && <Icon name="chevron-left" size={16} style={style.cancelIcon}/>}
|
{type == "cancel" && <Icon name="chevron-left" size={16} style={style.cancelIcon}/>}
|
||||||
{type == "primary" && <Text style={style.primaryText}>{label}</Text>}
|
{type == "primary" && <Text style={style.primaryText}>{label}</Text>}
|
||||||
{type == "secondary" && <Text style={style.secondaryText}>{label}</Text>}
|
{type == "secondary" && <Text style={style.secondaryText}>{label}</Text>}
|
||||||
</TouchableOpacity>
|
|
||||||
</View>
|
</View>
|
||||||
|
</TouchableOpacity>
|
||||||
)};
|
)};
|
||||||
|
|
||||||
const style = StyleSheet.create({
|
const style = StyleSheet.create({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user