mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-26 08:55:56 +01:00
REF: Nunofication
This commit is contained in:
parent
b20ddbd293
commit
cec73312da
2 changed files with 54 additions and 15 deletions
|
@ -459,8 +459,8 @@
|
|||
"view": "View",
|
||||
"manage_keys": "Manage Keys",
|
||||
"how_many_signatures_can_bluewallet_make": "how many signatures can bluewallet make",
|
||||
"signatures_required_to_spend": "Signatures required to spend: {number}",
|
||||
"signatures_we_can_make": "Signatures we can make: {number}",
|
||||
"signatures_required_to_spend": "Signatures required {number}",
|
||||
"signatures_we_can_make": "can make {number}",
|
||||
"scan_or_import_file": "Scan or import file",
|
||||
"export_coordination_setup": "Export Coordination Setup",
|
||||
"cosign_this_transaction": "Co-sign this transaction?",
|
||||
|
|
|
@ -14,9 +14,8 @@ import {
|
|||
Text,
|
||||
View,
|
||||
} from 'react-native';
|
||||
import { Icon } from 'react-native-elements';
|
||||
import { Icon, Badge } from 'react-native-elements';
|
||||
import { useFocusEffect, useNavigation, useRoute, useTheme } from '@react-navigation/native';
|
||||
import { SafeAreaView } from 'react-native-safe-area-context';
|
||||
import { getSystemName } from 'react-native-device-info';
|
||||
|
||||
import {
|
||||
|
@ -116,6 +115,16 @@ const ViewEditMultisigCosigners = () => {
|
|||
wordText: {
|
||||
color: colors.labelText,
|
||||
},
|
||||
tipKeys: {
|
||||
color: colors.alternativeTextColor,
|
||||
},
|
||||
tipLabel: {
|
||||
backgroundColor: colors.inputBackgroundColor,
|
||||
borderColor: colors.inputBackgroundColor,
|
||||
},
|
||||
tipLabelText: {
|
||||
color: colors.buttonTextColor,
|
||||
},
|
||||
});
|
||||
|
||||
const onSave = async () => {
|
||||
|
@ -449,35 +458,51 @@ const ViewEditMultisigCosigners = () => {
|
|||
|
||||
if (isLoading)
|
||||
return (
|
||||
<SafeAreaView style={[styles.root, stylesHook.root]}>
|
||||
<View style={[styles.root, stylesHook.root]}>
|
||||
<BlueLoading />
|
||||
</SafeAreaView>
|
||||
</View>
|
||||
);
|
||||
|
||||
const howMany = <Badge value={wallet.getM()} badgeStyle={[styles.tipLabel, stylesHook.tipLabel]} textStyle={[styles.tipLabelText, stylesHook.tipLabelText]} />;
|
||||
|
||||
const andHere = <Badge value={wallet.howManySignaturesCanWeMake()} badgeStyle={[styles.tipLabel, stylesHook.tipLabel]} textStyle={[styles.tipLabelText, stylesHook.tipLabelText]} />;
|
||||
|
||||
const tipKeys = () => {
|
||||
return (
|
||||
<View>
|
||||
<BlueSpacing20 />
|
||||
<Text style={[styles.tipKeys, stylesHook.tipKeys]}>
|
||||
{loc.formatString(loc.multisig.signatures_required_to_spend, {number: howMany} )}
|
||||
{loc.formatString(loc.multisig.signatures_we_can_make, { number: andHere} )}
|
||||
</Text>
|
||||
<BlueSpacing10 />
|
||||
<BlueSpacing20 />
|
||||
</View>
|
||||
);
|
||||
};
|
||||
|
||||
const footer = <BlueButton disabled={vaultKeyData.isLoading || isSaveButtonDisabled} title={loc._.save} onPress={onSave} />;
|
||||
|
||||
return (
|
||||
<SafeAreaView style={[styles.root, stylesHook.root]}>
|
||||
<StatusBar barStyle="default" />
|
||||
<View style={[styles.root, stylesHook.root]}>
|
||||
<StatusBar barStyle="light-content" />
|
||||
<KeyboardAvoidingView
|
||||
enabled
|
||||
behavior={Platform.OS === 'ios' ? 'padding' : null}
|
||||
keyboardVerticalOffset={62}
|
||||
style={[styles.mainBlock, styles.root]}
|
||||
>
|
||||
<BlueTextCentered>{loc.formatString(loc.multisig.signatures_required_to_spend, { number: wallet.getM() })}</BlueTextCentered>
|
||||
<BlueTextCentered>
|
||||
{loc.formatString(loc.multisig.signatures_we_can_make, { number: wallet.howManySignaturesCanWeMake() })}
|
||||
</BlueTextCentered>
|
||||
<FlatList data={data.current} extraData={vaultKeyData} renderItem={_renderKeyItem} keyExtractor={(_item, index) => `${index}`} />
|
||||
>
|
||||
|
||||
<FlatList ListHeaderComponent={tipKeys} data={data.current} extraData={vaultKeyData} renderItem={_renderKeyItem} keyExtractor={(_item, index) => `${index}`} />
|
||||
<BlueSpacing10 />
|
||||
{footer}
|
||||
<BlueSpacing40 />
|
||||
</KeyboardAvoidingView>
|
||||
|
||||
{renderProvideMnemonicsModal()}
|
||||
|
||||
{renderMnemonicsModal()}
|
||||
</SafeAreaView>
|
||||
</View>
|
||||
);
|
||||
};
|
||||
|
||||
|
@ -575,6 +600,20 @@ const styles = StyleSheet.create({
|
|||
header2Text: { color: '#9AA0AA', fontSize: 14, paddingBottom: 20 },
|
||||
alignItemsCenter: { alignItems: 'center' },
|
||||
squareButtonWrapper: { height: 50, width: 250 },
|
||||
tipKeys: {
|
||||
fontSize: 15,
|
||||
fontWeight: '600',
|
||||
flex: 1,
|
||||
},
|
||||
tipLabel: {
|
||||
width: 30,
|
||||
marginRight: 6,
|
||||
position: 'relative',
|
||||
bottom: -3,
|
||||
},
|
||||
tipLabelText: {
|
||||
fontWeight: '500',
|
||||
}
|
||||
});
|
||||
|
||||
ViewEditMultisigCosigners.navigationOptions = ({ navigation }) => ({
|
||||
|
|
Loading…
Add table
Reference in a new issue