fix: Remise en état du bouton Submit

This commit is contained in:
N3WT DE COMPET
2025-05-04 15:03:51 +02:00
parent dc402df58b
commit e9650c992e
3 changed files with 13 additions and 3 deletions

View File

@ -5,7 +5,7 @@ import InscriptionFormShared from '@/components/Inscription/InscriptionFormShare
import { FE_ADMIN_SUBSCRIPTIONS_URL } from '@/utils/Url';
import { useCsrfToken } from '@/context/CsrfContext';
import { useEstablishment } from '@/context/EstablishmentContext';
import { editRegisterForm } from '@/app/actions/subscriptionAction';
import { editRegisterFormWithBinaryFile } from '@/app/actions/subscriptionAction';
import logger from '@/utils/logger';
import Loader from '@/components/Loader';

View File

@ -647,7 +647,7 @@ export default function InscriptionFormShared({
primary
/>
)}
{currentPage < steps.length && (
{currentPage < steps.length ? (
<Button
text="Suivant"
onClick={(e) => {
@ -675,6 +675,16 @@ export default function InscriptionFormShared({
primary
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
/>
)}
</>
) : (

View File

@ -8,7 +8,7 @@ import {
fetchParentFileTemplatesFromRegistrationFiles,
} from '@/app/actions/subscriptionAction';
import logger from '@/utils/logger';
import { School, CheckCircle } from 'lucide-react';
import { School, CheckCircle, Hourglass } from 'lucide-react';
import SectionHeader from '@/components/SectionHeader';
import Button from '@/components/Button';