refactor password page
This commit is contained in:
@@ -3,6 +3,7 @@ import { View, ScrollView } from 'react-native'
|
|||||||
import CreatePassword from './create'
|
import CreatePassword from './create'
|
||||||
import ChangePassword from './update'
|
import ChangePassword from './update'
|
||||||
import DeletePassword from './delete'
|
import DeletePassword from './delete'
|
||||||
|
import SettingsSegment from '../settings-segment'
|
||||||
import AppText from '../../app-text'
|
import AppText from '../../app-text'
|
||||||
import {
|
import {
|
||||||
hasEncryptionObservable
|
hasEncryptionObservable
|
||||||
@@ -22,11 +23,7 @@ export default class PasswordSetting extends Component {
|
|||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<ScrollView>
|
<ScrollView>
|
||||||
<View style={styles.settingsSegment}>
|
<SettingsSegment title={labels.passwordSettings.title}>
|
||||||
|
|
||||||
<AppText style={styles.settingsSegmentTitle}>
|
|
||||||
{labels.passwordSettings.title}
|
|
||||||
</AppText>
|
|
||||||
|
|
||||||
{this.state.showUpdateAndDelete ?
|
{this.state.showUpdateAndDelete ?
|
||||||
<AppText>{labels.passwordSettings.explainerEnabled}</AppText>
|
<AppText>{labels.passwordSettings.explainerEnabled}</AppText>
|
||||||
@@ -45,7 +42,7 @@ export default class PasswordSetting extends Component {
|
|||||||
<CreatePassword/>
|
<CreatePassword/>
|
||||||
}
|
}
|
||||||
|
|
||||||
</View>
|
</SettingsSegment>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user