Fix typescript errors
parent
82955c3b97
commit
c0373aac31
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -88,11 +88,11 @@ export const PlanContent = () => {
|
|||
})
|
||||
.reverse()}
|
||||
|
||||
<Li>
|
||||
{/* <Li>
|
||||
<Link to={absoluteSitePaths.assistants.embaucher}>
|
||||
<Trans>Les formalités pour embaucher</Trans>
|
||||
</Link>
|
||||
</Li>
|
||||
</Li> */}
|
||||
|
||||
<Li>
|
||||
<Link to={absoluteSitePaths.assistants.sécuritéSociale}>
|
||||
|
|
|
@ -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}
|
||||
>
|
||||
<RadioCard
|
||||
|
|
|
@ -3,6 +3,7 @@ import { Trans, useTranslation } from 'react-i18next'
|
|||
import { Article } from '@/design-system/card'
|
||||
import { useSitePaths } from '@/sitePaths'
|
||||
|
||||
// TODO: remove?
|
||||
export function DemarcheEmbaucheCard() {
|
||||
const { absoluteSitePaths } = useSitePaths()
|
||||
const { t } = useTranslation()
|
||||
|
@ -21,7 +22,7 @@ export function DemarcheEmbaucheCard() {
|
|||
'gérer.ressources.embaucher.aria-label',
|
||||
"Embauche d'un salarié, Voir la liste des démarches"
|
||||
)}
|
||||
to={absoluteSitePaths.assistants.embaucher}
|
||||
// to={absoluteSitePaths.assistants.embaucher}
|
||||
>
|
||||
<Trans i18nKey="gérer.ressources.embaucher.body">
|
||||
La liste des choses à faire pour être sûr de ne rien oublier lors de
|
||||
|
|
|
@ -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) {
|
|||
/>
|
||||
</Grid>
|
||||
)}
|
||||
<WhenNotApplicable dottedName="entreprise . catégorie juridique . EI . auto-entrepreneur">
|
||||
<Grid item xs={12} sm={6} lg={4} role="listitem">
|
||||
{/* <WhenNotApplicable dottedName="entreprise . catégorie juridique . EI . auto-entrepreneur">
|
||||
<Grid item sm={12} md={4} role="listitem">
|
||||
<DemarcheEmbaucheCard />
|
||||
</Grid>
|
||||
</WhenNotApplicable>
|
||||
</WhenNotApplicable> */}
|
||||
<WhenApplicable dottedName="entreprise . catégorie juridique . EI . auto-entrepreneur">
|
||||
<Grid item xs={12} sm={6} lg={4} role="listitem">
|
||||
<AutoEntrepreneurCard />
|
||||
|
|
|
@ -31,7 +31,7 @@ const StatusCard = ({
|
|||
<Grid container spacing={1}>
|
||||
{status.map((statusString) => (
|
||||
<Grid item key={statusString}>
|
||||
<StatutTag statut={statusString} text="shortName" showIcon />
|
||||
<StatutTag statut={statusString} text="longName" showIcon />
|
||||
</Grid>
|
||||
))}
|
||||
</Grid>
|
||||
|
|
|
@ -50,13 +50,13 @@ export default function SalariéSimulation() {
|
|||
<Trans i18nKey="simulation-end.hiring.text">
|
||||
Vous pouvez maintenant concrétiser votre projet d'embauche.
|
||||
</Trans>
|
||||
<ButtonContainer>
|
||||
{/* <ButtonContainer>
|
||||
<Button to={absoluteSitePaths.assistants.embaucher}>
|
||||
<Trans i18nKey="simulation-end.cta">
|
||||
Connaître les démarches
|
||||
</Trans>
|
||||
</Button>
|
||||
</ButtonContainer>
|
||||
</ButtonContainer> */}
|
||||
</>
|
||||
}
|
||||
afterQuestionsSlot={
|
||||
|
|
Loading…
Reference in New Issue