refactor(salarié): Renomme le composant Fiche de Paie

pull/3159/head
Alice Dahan 2024-08-20 16:56:02 +02:00 committed by liliced
parent db307c7317
commit 20f3093da9
6 changed files with 11 additions and 7 deletions

View File

@ -3,7 +3,7 @@ import { ASTNode, ParsedRules, reduceAST, Rule, RuleNode } from 'publicodes'
import { Fragment } from 'react'
import { Trans } from 'react-i18next'
import './PaySlip.css'
import './FicheDePaie'
import { Strong } from '@/design-system/typography'
import { H4, H5 } from '@/design-system/typography/heading'

View File

@ -1,4 +1,4 @@
import './PaySlip.css'
import './FicheDePaie.css'
import { styled } from 'styled-components'
@ -7,7 +7,7 @@ import Line from './Line'
import SalaireBrut from './SalaireBrut'
import SalaireNet from './SalaireNet'
export default function PaySlip() {
export default function FicheDePaie() {
return (
<StyledContainer className="payslip__container">
<div className="payslip__salarySection">
@ -25,6 +25,10 @@ export default function PaySlip() {
<SalaireBrut />
<Cotisations />
{/* <MontantNetSocial />
<Remboursements />
<SalaireNetAvantImpot />
<ImpotSurLeRevenu /> */}
<SalaireNet />
</StyledContainer>
)

View File

@ -5,7 +5,7 @@ import { H4 } from '@/design-system/typography/heading'
import { Condition } from '../EngineValue/Condition'
import Line from './Line'
import './PaySlip.css'
import './FicheDePaie.css'
export default function SalaireBrut() {
return (

View File

@ -1,6 +1,6 @@
import { Trans, useTranslation } from 'react-i18next'
import './PaySlip.css'
import './FicheDePaie.css'
import { H4 } from '@/design-system/typography/heading'

View File

@ -14,7 +14,7 @@ import { SmallBody } from '@/design-system/typography/paragraphs'
import { useCurrentSimulatorData } from '@/hooks/useCurrentSimulatorData'
import { getCotisationsBySection } from '../FicheDePaie/Cotisations'
import PaySlip from '../FicheDePaie/PaySlip'
import FicheDePaie from '../FicheDePaie/FicheDePaie'
export default function SalaryExplanation() {
const payslipRef = useRef<HTMLDivElement>(null)
@ -66,7 +66,7 @@ export default function SalaryExplanation() {
<H2>
<Trans>Fiche de paie</Trans>
</H2>
<PaySlip />
<FicheDePaie />
<SmallBody>
<Trans i18nKey="payslip.notice">
Le simulateur vous aide à comprendre votre bulletin de paie,