mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-21 14:34:55 +01:00
TST: fixed selftest
This commit is contained in:
parent
01ad4a8d01
commit
eaa81bfd23
3 changed files with 11 additions and 16 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -15,3 +15,5 @@
|
|||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
class/constants.js
|
||||
|
|
|
@ -2,6 +2,7 @@ import { createStackNavigator } from 'react-navigation';
|
|||
|
||||
import Settings from './screen/settings/settings';
|
||||
import About from './screen/settings/about';
|
||||
import Selftest from './screen/selftest';
|
||||
import Language from './screen/settings/language';
|
||||
import EncryptStorage from './screen/settings/encryptStorage';
|
||||
import WalletsList from './screen/wallets/list';
|
||||
|
@ -63,6 +64,9 @@ const WalletsStackNavigator = createStackNavigator({
|
|||
screen: About,
|
||||
path: 'About',
|
||||
},
|
||||
Selftest: {
|
||||
screen: Selftest,
|
||||
},
|
||||
Language: {
|
||||
screen: Language,
|
||||
path: 'Language',
|
||||
|
|
|
@ -1,20 +1,16 @@
|
|||
import React, { Component } from 'react';
|
||||
import { ScrollView, View } from 'react-native';
|
||||
import Ionicons from 'react-native-vector-icons/Ionicons';
|
||||
import { BlueLoading, BlueSpacing20, SafeBlueArea, BlueCard, BlueText, BlueButton, BlueHeader } from '../BlueComponents';
|
||||
import { BlueLoading, BlueSpacing20, SafeBlueArea, BlueCard, BlueText, BlueButton, BlueNavigationStyle } from '../BlueComponents';
|
||||
import PropTypes from 'prop-types';
|
||||
import { SegwitP2SHWallet, LegacyWallet, HDSegwitP2SHWallet } from '../class';
|
||||
let BlueApp = require('../BlueApp');
|
||||
let BigNumber = require('bignumber.js');
|
||||
let encryption = require('../encryption');
|
||||
|
||||
export default class Selftest extends Component {
|
||||
static navigationOptions = {
|
||||
tabBarLabel: 'Self test',
|
||||
tabBarIcon: ({ tintColor, focused }) => (
|
||||
<Ionicons name={focused ? 'ios-settings' : 'ios-settings-outline'} size={26} style={{ color: tintColor }} />
|
||||
),
|
||||
};
|
||||
static navigationOptions = () => ({
|
||||
...BlueNavigationStyle(),
|
||||
title: 'Self test',
|
||||
});
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
@ -258,13 +254,6 @@ export default class Selftest extends Component {
|
|||
|
||||
return (
|
||||
<SafeBlueArea forceInset={{ horizontal: 'always' }} style={{ flex: 1 }}>
|
||||
<BlueHeader
|
||||
backgroundColor={BlueApp.settings.brandingColor}
|
||||
centerComponent={{
|
||||
text: 'Self test',
|
||||
style: { color: BlueApp.settings.foregroundColor, fontSize: 23 },
|
||||
}}
|
||||
/>
|
||||
<BlueCard>
|
||||
<ScrollView maxHeight={450}>
|
||||
<BlueSpacing20 />
|
||||
|
|
Loading…
Add table
Reference in a new issue