Merge pull request #3767 from BlueWallet/color

FIX: Color for details button
This commit is contained in:
GLaDOS 2021-09-08 02:25:58 +01:00 committed by GitHub
commit f8a192b846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 7 deletions

View File

@ -45,12 +45,14 @@ const Confirm = () => {
transactionAmountFiat: {
color: colors.feeText,
},
txDetails: {
backgroundColor: colors.lightButton,
},
valueValue: {
color: colors.alternativeTextColor2,
},
valueUnit: {
color: colors.alternativeTextColor2,
color: colors.buttonTextColor,
},
root: {
backgroundColor: colors.elevated,
@ -73,7 +75,7 @@ const Confirm = () => {
<TouchableOpacity
accessibilityRole="button"
testID="TransactionDetailsButton"
style={styles.txDetails}
style={[styles.txDetails, stylesHook.txDetails]}
onPress={async () => {
if (isBiometricUseCapableAndEnabled) {
if (!(await Biometric.unlockWithBiometrics())) {
@ -341,7 +343,6 @@ const styles = StyleSheet.create({
alignSelf: 'center',
},
txDetails: {
backgroundColor: '#EEF0F4',
alignItems: 'center',
justifyContent: 'center',
marginRight: 16,

View File

@ -54,6 +54,12 @@ const TransactionsStatus = () => {
iconRoot: {
backgroundColor: colors.success,
},
detailsText: {
color: colors.buttonTextColor,
},
details: {
backgroundColor: colors.lightButton,
},
});
useEffect(() => {
@ -75,10 +81,10 @@ const TransactionsStatus = () => {
<TouchableOpacity
accessibilityRole="button"
testID="TransactionDetailsButton"
style={styles.details}
style={[styles.details, stylesHook.details]}
onPress={navigateToTransactionDetials}
>
<Text style={[styles.detailsText, stylesHook.valueUnit]}>{loc.send.create_details}</Text>
<Text style={[styles.detailsText, stylesHook.detailsText]}>{loc.send.create_details}</Text>
</TouchableOpacity>
),
});
@ -539,7 +545,6 @@ const styles = StyleSheet.create({
textAlign: 'center',
},
details: {
backgroundColor: '#EEF0F4',
alignItems: 'center',
justifyContent: 'center',
marginRight: 16,