forked from cerc-io/laconic-wallet
Disable button for approve tx (#70)
This commit is contained in:
parent
290ea0097c
commit
ac18a43fab
@ -260,7 +260,8 @@ const ApproveTransaction = ({ route }: SignRequestProps) => {
|
||||
<Button
|
||||
mode="contained"
|
||||
onPress={acceptRequestHandler}
|
||||
loading={isTxLoading}>
|
||||
loading={isTxLoading}
|
||||
disabled={!balance && !cosmosStargateClient}>
|
||||
{isTxLoading ? 'Processing' : 'Yes'}
|
||||
</Button>
|
||||
<Button
|
||||
|
@ -134,11 +134,12 @@ const styles = StyleSheet.create({
|
||||
approveTransaction: {
|
||||
height: '40%',
|
||||
},
|
||||
// TODO: Fix button position
|
||||
buttonContainer: {
|
||||
flexDirection: 'row',
|
||||
marginLeft: 20,
|
||||
marginTop: 20,
|
||||
marginBottom: 20,
|
||||
marginBottom: 150,
|
||||
justifyContent: 'space-evenly',
|
||||
},
|
||||
badRequestContainer: {
|
||||
|
Loading…
Reference in New Issue
Block a user