mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-26 08:55:56 +01:00
REF: CoinControl badges
This commit is contained in:
parent
291d625465
commit
3b1b15428d
1 changed files with 4 additions and 11 deletions
|
@ -13,7 +13,6 @@ import {
|
|||
Text,
|
||||
TextInput,
|
||||
TouchableWithoutFeedback,
|
||||
useColorScheme,
|
||||
useWindowDimensions,
|
||||
View,
|
||||
} from 'react-native';
|
||||
|
@ -41,26 +40,20 @@ const debounce = (func, wait) => {
|
|||
|
||||
const FrozenBadge = () => {
|
||||
const { colors } = useTheme();
|
||||
const cs = useColorScheme();
|
||||
const oStyles = StyleSheet.create({
|
||||
freezeLight: { backgroundColor: colors.redBG },
|
||||
freezeDark: { backgroundColor: colors.redBG, borderWidth: 0 },
|
||||
freeze: { backgroundColor: colors.redBG, borderWidth: 0 },
|
||||
freezeText: { color: colors.redText },
|
||||
});
|
||||
|
||||
return <Badge value={loc.cc.freeze} badgeStyle={oStyles[cs === 'dark' ? 'freezeDark' : 'freezeLight']} textStyle={oStyles.freezeText} />;
|
||||
return <Badge value={loc.cc.freeze} badgeStyle={oStyles.freeze} textStyle={oStyles.freezeText} />;
|
||||
};
|
||||
|
||||
const ChangeBadge = () => {
|
||||
const { colors } = useTheme();
|
||||
const cs = useColorScheme();
|
||||
const oStyles = StyleSheet.create({
|
||||
changeLight: { backgroundColor: colors.buttonDisabledBackgroundColor },
|
||||
changeDark: { backgroundColor: colors.buttonDisabledBackgroundColor, borderWidth: 0 },
|
||||
change: { backgroundColor: colors.buttonDisabledBackgroundColor, borderWidth: 0 },
|
||||
changeText: { color: colors.alternativeTextColor },
|
||||
});
|
||||
|
||||
return <Badge value={loc.cc.change} badgeStyle={oStyles[cs === 'dark' ? 'changeDark' : 'changeLight']} textStyle={oStyles.changeText} />;
|
||||
return <Badge value={loc.cc.change} badgeStyle={oStyles.change} textStyle={oStyles.changeText} />;
|
||||
};
|
||||
|
||||
const OutputList = ({
|
||||
|
|
Loading…
Add table
Reference in a new issue