Disable button for approve tx (#70)

This commit is contained in:
IshaVenikar 2024-03-28 16:51:58 +05:30 committed by GitHub
parent 290ea0097c
commit ac18a43fab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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: {