mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 16:03:21 +00:00
fix: import du Loader
This commit is contained in:
@ -13,6 +13,7 @@ import InputPhone from '@/components/InputPhone';
|
||||
import CheckBox from '@/components/CheckBox';
|
||||
import RadioList from '@/components/RadioList';
|
||||
import SelectChoice from '@/components/SelectChoice';
|
||||
import Loader from '@/components/Loader';
|
||||
import { getCurrentSchoolYear, getNextSchoolYear } from '@/utils/Date';
|
||||
import logger from '@/utils/logger';
|
||||
import { levels, genders } from '@/utils/constants';
|
||||
@ -183,9 +184,7 @@ export default function CreateSubscriptionPage() {
|
||||
...prevData,
|
||||
isExistingParentProfile: true,
|
||||
existingProfileId: existingProfile.id, // Récupérer l'ID du profil associé
|
||||
guardianLastName: existingProfile.last_name || '',
|
||||
guardianFirstName: existingProfile.first_name || '',
|
||||
guardianPhone: existingProfile.phone || '',
|
||||
guardianEmail: existingProfile.email || ''
|
||||
}));
|
||||
} else {
|
||||
// Si aucun profil avec cet email n'existe, réinitialiser les champs
|
||||
@ -215,8 +214,7 @@ export default function CreateSubscriptionPage() {
|
||||
studentGender: data?.student?.gender || '',
|
||||
guardianLastName: data?.student?.guardians[0]?.last_name || '',
|
||||
guardianFirstName: data?.student?.guardians[0]?.first_name || '',
|
||||
guardianEmail:
|
||||
data?.student?.guardians[0]?.associated_profile_email || '',
|
||||
guardianEmail: data?.student?.guardians[0]?.associated_profile_email || '',
|
||||
guardianPhone: data?.student?.guardians[0]?.phone || '',
|
||||
selectedFileGroup: data?.fileGroup || '',
|
||||
schoolYear: data?.school_year || '',
|
||||
|
||||
Reference in New Issue
Block a user