fixing error from CI

This commit is contained in:
mathysPaul
2023-09-20 17:59:36 +02:00
31 changed files with 1260 additions and 24 deletions
+25 -1
View File
@@ -6,7 +6,7 @@ import ElementList from '../../components/GtkUI/ElementList';
import { translate } from '../../i18n/i18n';
import { useQuery } from '../../Queries';
import * as ImagePicker from 'expo-image-picker';
import { Google, PasswordCheck, SmsEdit, UserSquare } from 'iconsax-react-native';
import { Google, PasswordCheck, SmsEdit, UserSquare, Verify } from 'iconsax-react-native';
import ChangeEmailForm from '../../components/forms/changeEmailForm';
import ChangePasswordForm from '../../components/forms/changePasswordForm';
@@ -53,6 +53,30 @@ const ProfileSettings = () => {
text: user.googleID ? 'Linked' : 'Not linked',
},
},
{
icon: <Verify size="24" color="#FFF" style={{ minWidth: 24 }} />,
type: 'text',
description: 'Vérifiez votre adresse e-mail', // TODO translate
title: translate('verified'),
data: {
text: user.emailVerified ? 'verified' : 'not verified',
onPress: user.emailVerified
? undefined
: () =>
API.fetch({ route: '/auth/reverify', method: 'PUT' })
.then(() =>
Toast.show({
description: 'Verification mail sent',
})
)
.catch((e) => {
console.error(e);
Toast.show({
description: 'Verification mail send error',
});
}),
},
},
{
icon: <UserSquare size="24" color="#FFF" style={{ minWidth: 24 }} />,
type: 'text',