From c0373aac314a5bd5a47a5c04918d10c1ff503165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?= Date: Tue, 20 Jun 2023 18:56:57 +0200 Subject: [PATCH] Fix typescript errors --- site/source/components/StatutTag.tsx | 4 +--- site/source/pages/Plan.tsx | 4 ++-- .../assistants/choix-du-statut/association.tsx | 2 +- .../pour-mon-entreprise/DemarcheEmbauche.tsx | 3 ++- site/source/pages/simulateurs/NextSteps.tsx | 13 ++++--------- .../comparaison-statuts/components/StatusCard.tsx | 2 +- site/source/pages/simulateurs/salarié/Salarié.tsx | 4 ++-- 7 files changed, 13 insertions(+), 19 deletions(-) diff --git a/site/source/components/StatutTag.tsx b/site/source/components/StatutTag.tsx index 297774114..26f1f7b7a 100644 --- a/site/source/components/StatutTag.tsx +++ b/site/source/components/StatutTag.tsx @@ -21,7 +21,6 @@ const TAG_DATA = { AE: { color: 'tertiary', longName: 'Auto-entrepreneur', - shortName: 'Auto-entrepreneur', acronym: 'AE', icon: CircleIcon, }, @@ -85,7 +84,6 @@ const TAG_DATA = { [key: string]: { color: Colors longName: string - shortName?: string acronym: string icon: FC } @@ -109,7 +107,7 @@ const StyledTag = styled(Tag)` interface StatutTagProps { statut: Statut - text: 'acronym' | 'shortName' | 'longName' + text: 'acronym' | 'longName' showIcon?: boolean } diff --git a/site/source/pages/Plan.tsx b/site/source/pages/Plan.tsx index 1a4db9eb4..191038e44 100644 --- a/site/source/pages/Plan.tsx +++ b/site/source/pages/Plan.tsx @@ -88,11 +88,11 @@ export const PlanContent = () => { }) .reverse()} -
  • + {/*
  • Les formalités pour embaucher -
  • + */}
  • diff --git a/site/source/pages/assistants/choix-du-statut/association.tsx b/site/source/pages/assistants/choix-du-statut/association.tsx index adcee3774..1fd574f7f 100644 --- a/site/source/pages/assistants/choix-du-statut/association.tsx +++ b/site/source/pages/assistants/choix-du-statut/association.tsx @@ -48,7 +48,7 @@ export default function Association() { 'choix-statut.association.question', 'Pourquoi créez vous cette entreprise ?' )} - onChange={setCurrentSelection} + onChange={setCurrentSelection as (val: string) => void} value={currentSelection} > La liste des choses à faire pour être sûr de ne rien oublier lors de diff --git a/site/source/pages/simulateurs/NextSteps.tsx b/site/source/pages/simulateurs/NextSteps.tsx index 8dbcd7416..37c58e9e9 100644 --- a/site/source/pages/simulateurs/NextSteps.tsx +++ b/site/source/pages/simulateurs/NextSteps.tsx @@ -1,10 +1,6 @@ import { Trans, useTranslation } from 'react-i18next' -import { - WhenAlreadyDefined, - WhenApplicable, - WhenNotApplicable, -} from '@/components/EngineValue' +import { WhenAlreadyDefined, WhenApplicable } from '@/components/EngineValue' import { useEngine } from '@/components/utils/EngineContext' // import { Article } from '@/design-system/card' // import { Emoji } from '@/design-system/emoji' @@ -19,7 +15,6 @@ import { useSitePaths } from '@/sitePaths' import { AnnuaireEntreprises } from '../assistants/pour-mon-entreprise/AnnuaireEntreprises' import { AutoEntrepreneurCard } from '../assistants/pour-mon-entreprise/AutoEntrepeneurCard' import { CodeDuTravailNumeriqueCard } from '../assistants/pour-mon-entreprise/CodeDuTravailNumeriqueCard' -import { DemarcheEmbaucheCard } from '../assistants/pour-mon-entreprise/DemarcheEmbauche' import { SecuriteSocialeCard } from '../assistants/pour-mon-entreprise/SecuriteSocialeCard' interface NextStepsProps { @@ -60,11 +55,11 @@ export function NextSteps({ iframePath, nextSteps }: NextStepsProps) { /> )} - - + {/* + - + */} diff --git a/site/source/pages/simulateurs/comparaison-statuts/components/StatusCard.tsx b/site/source/pages/simulateurs/comparaison-statuts/components/StatusCard.tsx index 5983cd392..fc98bb74a 100644 --- a/site/source/pages/simulateurs/comparaison-statuts/components/StatusCard.tsx +++ b/site/source/pages/simulateurs/comparaison-statuts/components/StatusCard.tsx @@ -31,7 +31,7 @@ const StatusCard = ({ {status.map((statusString) => ( - + ))} diff --git a/site/source/pages/simulateurs/salarié/Salarié.tsx b/site/source/pages/simulateurs/salarié/Salarié.tsx index 80ee63c35..d8aa63470 100644 --- a/site/source/pages/simulateurs/salarié/Salarié.tsx +++ b/site/source/pages/simulateurs/salarié/Salarié.tsx @@ -50,13 +50,13 @@ export default function SalariéSimulation() { Vous pouvez maintenant concrétiser votre projet d'embauche. - + {/* - + */} } afterQuestionsSlot={