-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tra-14703]Migration DSFR de la création d'un VHU (#3518)
* [tra-14703]refacto/cleanup for vhu redesign * [tra-14703]Migration DSFR de la création d'un VHU * delete files * add alert dsfr sealed + fix recette + fix e2e * fix recette * [tra-14918]fix recette champ identification numbers
- Loading branch information
Showing
97 changed files
with
1,821 additions
and
1,175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
front/src/Apps/Dashboard/Creation/DisabledParagraphStep.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import Alert from "@codegouvfr/react-dsfr/Alert"; | ||
import React from "react"; | ||
|
||
const DisabledParagraphStep = () => ( | ||
<Alert | ||
description="Les champs grisés ci-dessous ont été scellés via signature et ne sont plus modifiables." | ||
severity="info" | ||
small | ||
className="fr-mb-2w" | ||
/> | ||
); | ||
|
||
export default DisabledParagraphStep; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import React from "react"; | ||
import { useParams, useNavigate } from "react-router-dom"; | ||
import { ControlledTabs } from "./bspaoh/FormSteps"; | ||
import TdModal from "../../common/Components/Modal/Modal"; | ||
import { BsdTypename } from "../../common/types/bsdTypes"; | ||
import BsvhuFormSteps from "./bsvhu/BsvhuFormSteps"; | ||
|
||
interface FormContainerProps { | ||
bsdTypeName: BsdTypename; | ||
} | ||
const FormContainer = ({ bsdTypeName }: FormContainerProps) => { | ||
const { id } = useParams<{ id?: string; siret: string }>(); | ||
const navigate = useNavigate(); | ||
|
||
const formContent = { | ||
[BsdTypename.Bspaoh]: <ControlledTabs bsdId={id} />, | ||
[BsdTypename.Bsvhu]: <BsvhuFormSteps bsdId={id} /> | ||
}; | ||
return ( | ||
<TdModal | ||
onClose={() => navigate(-1)} | ||
ariaLabel="Annuler la modification" | ||
closeLabel="Annuler" | ||
isOpen | ||
size="TD_SIZE" | ||
> | ||
{formContent[bsdTypeName]} | ||
</TdModal> | ||
); | ||
}; | ||
|
||
export default FormContainer; |
Oops, something went wrong.