From 0067677ce18c2042a57ffe4f1e2716288eace8af Mon Sep 17 00:00:00 2001 From: PaulEntourage Date: Wed, 26 Jul 2023 15:02:06 +0200 Subject: [PATCH] [EN-6274] feat(cv): integration page CV --- .lintstagedrc.js | 2 +- package.json | 1 - src/components/cv/CVEditCareerPath.tsx | 4 ++-- src/components/cv/CVFicheEdition.tsx | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.lintstagedrc.js b/.lintstagedrc.js index b10c16341..347502e5f 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -1,4 +1,4 @@ module.exports = { - '*.ts?(x)': ['yarn tsc-files', 'yarn lint:fix'], + '*.ts?(x)': [() => 'yarn ts-check', 'yarn lint:fix'], '*.js?(x)': 'yarn lint:fix', }; diff --git a/package.json b/package.json index af03b0765..664822938 100755 --- a/package.json +++ b/package.json @@ -13,7 +13,6 @@ "lint": "npx eslint src --ext js,jsx,ts,tsx", "lint:fix": "npx eslint src --ext js,jsx,ts,tsx --fix", "ts-check": "tsc -p tsconfig.json --noEmit", - "ts-check:hook": "tsc tsconfig.json --noEmit", "format": "prettier --write './**/*.{js,jsx,md,json,ts,tsx}' --config .prettierrc.json", "build": "next build", "uikit-install": "cd ./node_modules/uikit && yarn", diff --git a/src/components/cv/CVEditCareerPath.tsx b/src/components/cv/CVEditCareerPath.tsx index 72b36ed59..a1ad4025f 100644 --- a/src/components/cv/CVEditCareerPath.tsx +++ b/src/components/cv/CVEditCareerPath.tsx @@ -12,7 +12,7 @@ import { } from 'src/constants'; import { findConstantFromValue, sortByOrder } from 'src/utils'; -interface CVEditCareerPath { +interface CVEditCareerPathProps { ambitions: { order: number; name: string; @@ -29,7 +29,7 @@ export const CVEditCareerPath = ({ ambitions, businessLines, onChange, -}: CVEditCareerPath) => { +}: CVEditCareerPathProps) => { const sortedAmbitions = ambitions && ambitions.length > 0 ? sortByOrder(ambitions) : null; diff --git a/src/components/cv/CVFicheEdition.tsx b/src/components/cv/CVFicheEdition.tsx index e2590997e..5d8103a06 100644 --- a/src/components/cv/CVFicheEdition.tsx +++ b/src/components/cv/CVFicheEdition.tsx @@ -17,7 +17,7 @@ import { Grid, Img } from 'src/components/utils'; import { CV_STATUS } from 'src/constants'; import { useMount, usePrevious } from 'src/hooks/utils'; -interface VFicheEditionProps { +interface CVFicheEditionProps { cv: CV; onChange?: (arg1: any) => void; disablePicture?: boolean; @@ -37,7 +37,7 @@ export const CVFicheEdition = ({ phone, address, userZone, -}: VFicheEditionProps) => { +}: CVFicheEditionProps) => { const [previewUrl, setPreviewUrl] = useState(undefined); const [imageUrl, setImageUrl] = useState(undefined);