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

View File

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