Add a button to resend verified mail
This commit is contained in:
@@ -183,6 +183,7 @@ export const en = {
|
||||
noRecentSearches: 'No recent searches',
|
||||
avatar: 'Avatar',
|
||||
changeIt: 'Change It',
|
||||
verified: "Verified",
|
||||
};
|
||||
|
||||
export const fr: typeof en = {
|
||||
@@ -368,6 +369,7 @@ export const fr: typeof en = {
|
||||
noRecentSearches: 'Aucune recherche récente',
|
||||
avatar: 'Avatar',
|
||||
changeIt: 'Modifier',
|
||||
verified: "Verifié",
|
||||
};
|
||||
|
||||
export const sp: typeof en = {
|
||||
@@ -558,4 +560,5 @@ export const sp: typeof en = {
|
||||
|
||||
avatar: 'Avatar',
|
||||
changeIt: 'Cambialo',
|
||||
verified: "Verified"
|
||||
};
|
||||
|
||||
@@ -49,12 +49,22 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => {
|
||||
type: 'text',
|
||||
title: translate('email'),
|
||||
data: {
|
||||
text: `${user.email} ${user.emailVerified ? "verified" : "not verified"}` || translate('NoAssociatedEmail'),
|
||||
text: user.email || translate('NoAssociatedEmail'),
|
||||
onPress: () => {
|
||||
navigation.navigate('changeEmail');
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'text',
|
||||
title: translate('verified'),
|
||||
data: {
|
||||
text: user.emailVerified ? 'verified' : 'not verified',
|
||||
onPress: user.emailVerified
|
||||
? undefined
|
||||
: () => API.fetch({ route: '/auth/reverify', method: 'PUT' }),
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'text',
|
||||
title: translate('avatar'),
|
||||
|
||||
Reference in New Issue
Block a user