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
|
<Button
|
||||||
mode="contained"
|
mode="contained"
|
||||||
onPress={acceptRequestHandler}
|
onPress={acceptRequestHandler}
|
||||||
loading={isTxLoading}>
|
loading={isTxLoading}
|
||||||
|
disabled={!balance && !cosmosStargateClient}>
|
||||||
{isTxLoading ? 'Processing' : 'Yes'}
|
{isTxLoading ? 'Processing' : 'Yes'}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
|
@ -134,11 +134,12 @@ const styles = StyleSheet.create({
|
|||||||
approveTransaction: {
|
approveTransaction: {
|
||||||
height: '40%',
|
height: '40%',
|
||||||
},
|
},
|
||||||
|
// TODO: Fix button position
|
||||||
buttonContainer: {
|
buttonContainer: {
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
marginLeft: 20,
|
marginLeft: 20,
|
||||||
marginTop: 20,
|
marginTop: 20,
|
||||||
marginBottom: 20,
|
marginBottom: 150,
|
||||||
justifyContent: 'space-evenly',
|
justifyContent: 'space-evenly',
|
||||||
},
|
},
|
||||||
badRequestContainer: {
|
badRequestContainer: {
|
||||||
|
Loading…
Reference in New Issue
Block a user