mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-23 07:15:35 +01:00
Update details.js
This commit is contained in:
parent
b2b2166266
commit
f1d020a96e
1 changed files with 21 additions and 6 deletions
|
@ -36,9 +36,6 @@ const TransactionsDetails = () => {
|
||||||
const [memo, setMemo] = useState();
|
const [memo, setMemo] = useState();
|
||||||
const { colors } = useTheme();
|
const { colors } = useTheme();
|
||||||
const stylesHooks = StyleSheet.create({
|
const stylesHooks = StyleSheet.create({
|
||||||
saveText: {
|
|
||||||
color: colors.alternativeTextColor2,
|
|
||||||
},
|
|
||||||
memoTextInput: {
|
memoTextInput: {
|
||||||
borderColor: colors.formBorder,
|
borderColor: colors.formBorder,
|
||||||
borderBottomColor: colors.formBorder,
|
borderBottomColor: colors.formBorder,
|
||||||
|
@ -50,13 +47,24 @@ const TransactionsDetails = () => {
|
||||||
Link: {
|
Link: {
|
||||||
color: colors.buttonTextColor,
|
color: colors.buttonTextColor,
|
||||||
},
|
},
|
||||||
|
save: {
|
||||||
|
backgroundColor: colors.lightButton,
|
||||||
|
},
|
||||||
|
saveText: {
|
||||||
|
color: colors.buttonTextColor,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setOptions({
|
setOptions({
|
||||||
headerRight: () => (
|
headerRight: () => (
|
||||||
<TouchableOpacity accessibilityRole="button" disabled={isLoading} style={styles.save} onPress={handleOnSaveButtonTapped}>
|
<TouchableOpacity
|
||||||
<Text style={stylesHooks.saveText}>{loc.wallets.details_save}</Text>
|
accessibilityRole="button"
|
||||||
|
disabled={isLoading}
|
||||||
|
style={[styles.save, stylesHooks.save]}
|
||||||
|
onPress={handleOnSaveButtonTapped}
|
||||||
|
>
|
||||||
|
<Text style={[styles.saveText, stylesHooks.saveText]}>{loc.wallets.details_save}</Text>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
),
|
),
|
||||||
});
|
});
|
||||||
|
@ -280,8 +288,15 @@ const styles = StyleSheet.create({
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
},
|
},
|
||||||
save: {
|
save: {
|
||||||
justifyContent: 'center',
|
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
|
justifyContent: 'center',
|
||||||
|
width: 80,
|
||||||
|
borderRadius: 8,
|
||||||
|
height: 34,
|
||||||
|
},
|
||||||
|
saveText: {
|
||||||
|
fontSize: 15,
|
||||||
|
fontWeight: '600',
|
||||||
},
|
},
|
||||||
memoTextInput: {
|
memoTextInput: {
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
|
|
Loading…
Add table
Reference in a new issue