mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-28 23:43:22 +00:00
fix: Remise en état du bouton Submit
This commit is contained in:
@ -5,7 +5,7 @@ import InscriptionFormShared from '@/components/Inscription/InscriptionFormShare
|
|||||||
import { FE_ADMIN_SUBSCRIPTIONS_URL } from '@/utils/Url';
|
import { FE_ADMIN_SUBSCRIPTIONS_URL } from '@/utils/Url';
|
||||||
import { useCsrfToken } from '@/context/CsrfContext';
|
import { useCsrfToken } from '@/context/CsrfContext';
|
||||||
import { useEstablishment } from '@/context/EstablishmentContext';
|
import { useEstablishment } from '@/context/EstablishmentContext';
|
||||||
import { editRegisterForm } from '@/app/actions/subscriptionAction';
|
import { editRegisterFormWithBinaryFile } from '@/app/actions/subscriptionAction';
|
||||||
import logger from '@/utils/logger';
|
import logger from '@/utils/logger';
|
||||||
import Loader from '@/components/Loader';
|
import Loader from '@/components/Loader';
|
||||||
|
|
||||||
|
|||||||
@ -647,7 +647,7 @@ export default function InscriptionFormShared({
|
|||||||
primary
|
primary
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{currentPage < steps.length && (
|
{currentPage < steps.length ? (
|
||||||
<Button
|
<Button
|
||||||
text="Suivant"
|
text="Suivant"
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
@ -675,6 +675,16 @@ export default function InscriptionFormShared({
|
|||||||
primary
|
primary
|
||||||
name="Next"
|
name="Next"
|
||||||
/>
|
/>
|
||||||
|
) : (
|
||||||
|
<Button
|
||||||
|
text="Valider"
|
||||||
|
onClick={(e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
handleSubmit(e);
|
||||||
|
}}
|
||||||
|
className="px-4 py-2 bg-emerald-500 text-white rounded-md shadow-sm hover:bg-emerald-600 focus:outline-none"
|
||||||
|
primary
|
||||||
|
/>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import {
|
|||||||
fetchParentFileTemplatesFromRegistrationFiles,
|
fetchParentFileTemplatesFromRegistrationFiles,
|
||||||
} from '@/app/actions/subscriptionAction';
|
} from '@/app/actions/subscriptionAction';
|
||||||
import logger from '@/utils/logger';
|
import logger from '@/utils/logger';
|
||||||
import { School, CheckCircle } from 'lucide-react';
|
import { School, CheckCircle, Hourglass } from 'lucide-react';
|
||||||
import SectionHeader from '@/components/SectionHeader';
|
import SectionHeader from '@/components/SectionHeader';
|
||||||
import Button from '@/components/Button';
|
import Button from '@/components/Button';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user