Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Update DisableBioAuth screen to reflect new design
Browse files Browse the repository at this point in the history
  • Loading branch information
altaywtf committed Apr 29, 2019
1 parent 39b339e commit d237a8e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 27 deletions.
21 changes: 7 additions & 14 deletions src/components/disableBioAuth/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { View } from 'react-native';
import { translate } from 'react-i18next';
import { removePassphraseFromKeyChain } from '../../utilities/passphrase';
import { settingsUpdated as settingsUpdatedAction } from '../../actions/settings';
import { P } from '../toolBox/typography';
import { PrimaryButton } from '../toolBox/button';
import withTheme from '../withTheme';
import getStyles from './styles';
Expand All @@ -30,25 +29,19 @@ class DisableBioAuth extends React.Component {
const {
t, styles, navigation, passphrase,
} = this.props;

const title = navigation.getParam('title', 'Bio Auth');

return (
<View style={[styles.wrapper, styles.theme.wrapper]}>
<View style={styles.container}>
<View>
<P style={[styles.subHeader, styles.theme.subHeader]}>
{t('Passphrase will be the only option to access your account.')}
</P>
<PassphraseCopy passphrase={passphrase} />
</View>

<View>
<PrimaryButton
onClick={this.confirm}
title={t('Disable bioAuth', { title })}
/>
</View>
<PassphraseCopy passphrase={passphrase} />
</View>

<PrimaryButton
onClick={this.confirm}
title={t('Disable bioAuth', { title })}
/>
</View>
);
}
Expand Down
17 changes: 4 additions & 13 deletions src/components/disableBioAuth/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,25 @@ export default () => ({
common: {
wrapper: {
flex: 1,
padding: boxes.boxPadding,
paddingBottom: (Platform.OS === 'ios' && DeviceInfo.isIPhoneX_deprecated) ? boxes.boxPadding * 2 : boxes.boxPadding,
},
container: {
flex: 1,
flexDirection: 'column',
justifyContent: 'space-between',
padding: boxes.boxPadding,
paddingBottom: (Platform.OS === 'ios' && DeviceInfo.isIPhoneX_deprecated) ? 30 : 20,
},
subHeader: {
marginBottom: boxes.boxPadding,
alignItems: 'center',
justifyContent: 'center',
},
},

[themes.light]: {
wrapper: {
backgroundColor: colors.light.white,
},
subHeader: {
color: colors.light.gray2,
},
},

[themes.dark]: {
wrapper: {
backgroundColor: colors.dark.screenBgNavy,
},
subHeader: {
color: colors.dark.gray1,
},
},
});

0 comments on commit d237a8e

Please sign in to comment.