Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update label for Close account login field #7783

Merged
merged 3 commits into from
Feb 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/languages/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ export default {
closeAccountSuccess: 'Account closed successfully',
closeAccountActionRequired: 'Looks like you need to complete some actions before closing your account. Check out the guide',
closeAccountTryAgainAfter: 'and try again after.',
typeToConfirm: ({emailOrPhone}) => `Enter ${emailOrPhone} to confirm`,
enterDefaultContact: 'Enter your default contact method',
defaultContact: 'Default contact method:',
okayGotIt: 'Okay, Got it',
},
passwordPage: {
Expand Down
3 changes: 2 additions & 1 deletion src/languages/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ export default {
closeAccountSuccess: 'Cuenta cerrada exitosamente',
closeAccountActionRequired: 'Parece que necesitas completar algunas acciones antes de cerrar tu cuenta. Mira la guía',
closeAccountTryAgainAfter: 'e intenta nuevamente',
typeToConfirm: ({emailOrPhone}) => `Ingresa ${emailOrPhone} para confirmar`,
enterDefaultContact: 'Introduce tu método de contacto predeterminado',
defaultContact: 'Método de contacto predeterminado:',
okayGotIt: 'Ok, entendido',
},
passwordPage: {
Expand Down
9 changes: 8 additions & 1 deletion src/pages/settings/Security/CloseAccountPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,18 @@ class CloseAccountPage extends Component {
{' '}
{this.props.translate('closeAccountPage.closeAccountPermanentlyDeleteData')}
</Text>
<Text style={[styles.mt5]}>
<Text style={[styles.textStrong]}>
{this.props.translate('closeAccountPage.defaultContact')}
</Text>
{' '}
{userEmailOrPhone}
</Text>
<TextInput
autoCapitalize="none"
value={this.state.phoneOrEmail}
onChangeText={phoneOrEmail => this.setState({phoneOrEmail: phoneOrEmail.toLowerCase()})}
label={this.props.translate('closeAccountPage.typeToConfirm', {emailOrPhone: userEmailOrPhone})}
label={this.props.translate('closeAccountPage.enterDefaultContact')}
containerStyles={[styles.mt5]}
/>
</ScrollView>
Expand Down