refactor(site): Change la valeur par défaut d'un paramètre de CompanyDetails pour la plus utilisée.

feat/1633-ajout-recherche-entreprise-simulateurs
Alice Dahan 2024-07-15 16:38:13 +02:00
parent 50279ecd33
commit ce0219a4fb
4 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ import Value from '../EngineValue/Value'
export function CompanyDetails({
showSituation = false,
headingTag = 'h2',
headingTag = 'h3',
}: {
showSituation?: boolean
headingTag?: string | ComponentType | undefined

View File

@ -39,7 +39,7 @@ export default function SearchOrCreate() {
{companySIREN ? (
<>
<H3 as="h2">Votre entreprise</H3>
<CompanyDetails headingTag="h3" />
<CompanyDetails />
<Spacing md />
<AnswerGroup role="list">
<Button

View File

@ -79,7 +79,7 @@ export default function AccueilChoixStatut() {
</Body>
</Trans>
</Message>
<CompanyDetails headingTag="h3" />
<CompanyDetails />
<PopoverConfirm
trigger={(buttonProps) => (
<Button

View File

@ -277,7 +277,7 @@ const AskCompanyMissingDetails = () => {
return (
<>
<CompanyDetails showSituation />
<CompanyDetails showSituation headingTag="h2" />
{!!questions.length && (
<>
<Body