Skip to content

Commit

Permalink
[NO-TASK]: Fix white corners on buy button
Browse files Browse the repository at this point in the history
  • Loading branch information
Danswar committed Nov 14, 2024
1 parent af64f03 commit dc5b0b3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion components/ImageButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import PropTypes from 'prop-types';

ImageButton.propTypes = {
source: PropTypes.number,
imageStyle: PropTypes.object,
};

export function ImageButton(props) {
Expand All @@ -21,7 +22,7 @@ export function ImageButton(props) {

return (
<TouchableOpacity style={styles.button} {...props}>
<Image source={props.source} style={styles.image} />
<Image source={props.source} style={[styles.image, props.imageStyle]} />
</TouchableOpacity>
);
}
11 changes: 8 additions & 3 deletions screen/wallets/asset.js
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,7 @@ const Asset = ({ navigation }) => {
<>
<View>
<ImageButton
imageStyle={styles.tileImageStyle}
source={buttonImages[0]}
onPress={() => handleOpenServices(DfxService.BUY)}
disabled={isHandlingOpenServices}
Expand All @@ -646,6 +647,7 @@ const Asset = ({ navigation }) => {
{isDfxSwap && (
<View>
<ImageButton
imageStyle={styles.tileImageStyle}
source={buttonImages[2]}
onPress={() => handleOpenServices(DfxService.SWAP)}
disabled={isHandlingOpenServices}
Expand Down Expand Up @@ -835,14 +837,17 @@ const styles = StyleSheet.create({
padding: 5,
alignItems: 'center',
},
walletDetails:{
walletDetails: {
paddingLeft: 12,
paddingVertical:12
paddingVertical: 12,
},
boltcardButton: { justifyContent: 'center', alignItems: 'center', marginTop: 10 },
scanIconContainer: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'center',
}
},
tileImageStyle: {
borderRadius: 5,
},
});

0 comments on commit dc5b0b3

Please sign in to comment.