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