⬆️ MAJ Typescript vers 4.2
parent
c0f1c94dc5
commit
ca9b952dff
|
@ -35,7 +35,7 @@
|
|||
"@types/react-router": "^5.1.2",
|
||||
"@types/recharts": "^1.8.16",
|
||||
"@types/redux-sentry-middleware": "^0.1.2",
|
||||
"@types/styled-components": "^5.1.4",
|
||||
"@types/styled-components": "^5.1.9",
|
||||
"@types/webpack": "^4.41.10",
|
||||
"@typescript-eslint/eslint-plugin": "^4.0.1",
|
||||
"@typescript-eslint/parser": "^4.0.1",
|
||||
|
|
|
@ -19,7 +19,7 @@ export default function NewsletterRegister() {
|
|||
)
|
||||
const formElement = useRef<HTMLFormElement>(null)
|
||||
const [userJustRegistered, setUserJustRegistered] = useState(false)
|
||||
const { t, i18n } = useTranslation()
|
||||
const { i18n } = useTranslation()
|
||||
|
||||
const onSubmit = (evt: React.FormEvent<HTMLFormElement>) => {
|
||||
evt.preventDefault()
|
||||
|
@ -85,12 +85,13 @@ export default function NewsletterRegister() {
|
|||
</label>
|
||||
<div className="footer__registerField">
|
||||
<input type="email" name="EMAIL" id="EMAIL" />
|
||||
<input
|
||||
className="ui__ plain small button"
|
||||
<button
|
||||
type="submit"
|
||||
value={t("S'inscrire")!}
|
||||
name="subscribe"
|
||||
/>
|
||||
className="ui__ plain small button"
|
||||
>
|
||||
<Trans>S'inscrire</Trans>
|
||||
</button>
|
||||
<input type="hidden" name="locale" value={i18n.language} />
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -175,8 +175,8 @@ export default function Question({
|
|||
}
|
||||
|
||||
const choiceElements = Array.isArray(choices)
|
||||
? renderBinaryQuestion(choices)
|
||||
: renderChildren(choices)
|
||||
? renderBinaryQuestion((choices as unknown) as typeof binaryQuestion)
|
||||
: renderChildren(choices as Choice)
|
||||
|
||||
return (
|
||||
<div
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
border-top: 1px solid var(--lighterColor);
|
||||
border-bottom: none;
|
||||
}
|
||||
.footer__registerField > input[type='submit'] {
|
||||
.footer__registerField > button[type='submit'] {
|
||||
border-top-left-radius: 0 !important;
|
||||
border-bottom-left-radius: 0 !important;
|
||||
margin: -1px !important;
|
||||
|
|
|
@ -69,11 +69,11 @@ function translateRule<Names extends string>(
|
|||
)
|
||||
}
|
||||
|
||||
export default function translateRules(
|
||||
export default function translateRules<Names extends string>(
|
||||
lang: string,
|
||||
translations: Record<string, Translation>,
|
||||
rules: Record<string, Rule>
|
||||
): Record<string, Rule> {
|
||||
translations: Record<Names, Translation>,
|
||||
rules: Record<Names, Rule>
|
||||
): Record<Names, Rule> {
|
||||
const translatedRules = mapObjIndexed(
|
||||
(rule: Rule, name: string) => translateRule(lang, translations, name, rule),
|
||||
rules
|
||||
|
|
|
@ -94,7 +94,7 @@
|
|||
"style-loader": "^0.23.1",
|
||||
"terser-webpack-plugin": "^3.0.2",
|
||||
"toml-loader": "^1.0.0",
|
||||
"typescript": "^4.1.0",
|
||||
"typescript": "^4.2.4",
|
||||
"url-loader": "^4.1.0",
|
||||
"webpack": "^4.42.0",
|
||||
"webpack-bundle-analyzer": "^3.7.0",
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
"devDependencies": {
|
||||
"chai": "^4.2.0",
|
||||
"intl": "^1.2.5",
|
||||
"typescript": "3.4.3",
|
||||
"typescript": "^4.2.4",
|
||||
"dedent-js": "1.0.1",
|
||||
"@dagrejs/graphlib": "^2.1.4"
|
||||
},
|
||||
|
|
|
@ -33,6 +33,6 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"js-yaml": "^4.0.0",
|
||||
"typescript": "^4.1.3"
|
||||
"typescript": "^4.2.4"
|
||||
}
|
||||
}
|
||||
|
|
27
yarn.lock
27
yarn.lock
|
@ -2568,14 +2568,13 @@
|
|||
"@types/react-native" "*"
|
||||
csstype "^3.0.2"
|
||||
|
||||
"@types/styled-components@^5.1.4":
|
||||
version "5.1.4"
|
||||
resolved "https://registry.yarnpkg.com/@types/styled-components/-/styled-components-5.1.4.tgz#11f167dbde268635c66adc89b5a5db2e69d75384"
|
||||
integrity sha512-78f5Zuy0v/LTQNOYfpH+CINHpchzMMmAt9amY2YNtSgsk1TmlKm8L2Wijss/mtTrsUAVTm2CdGB8VOM65vA8xg==
|
||||
"@types/styled-components@^5.1.9":
|
||||
version "5.1.9"
|
||||
resolved "https://registry.yarnpkg.com/@types/styled-components/-/styled-components-5.1.9.tgz#00d3d84b501420521c4db727e3c195459f87a6cf"
|
||||
integrity sha512-kbEG6YlwK8rucITpKEr6pA4Ho9KSQHUUOzZ9lY3va1mtcjvS3D0wDciFyHEiNHKLL/npZCKDQJqm0x44sPO9oA==
|
||||
dependencies:
|
||||
"@types/hoist-non-react-statics" "*"
|
||||
"@types/react" "*"
|
||||
"@types/react-native" "*"
|
||||
csstype "^3.0.2"
|
||||
|
||||
"@types/tapable@*":
|
||||
|
@ -13423,25 +13422,15 @@ typedarray@^0.0.6:
|
|||
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
|
||||
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
|
||||
|
||||
typescript@3.4.3:
|
||||
version "3.4.3"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.4.3.tgz#0eb320e4ace9b10eadf5bc6103286b0f8b7c224f"
|
||||
integrity sha512-FFgHdPt4T/duxx6Ndf7hwgMZZjZpB+U0nMNGVCYPq0rEzWKjEDobm4J6yb3CS7naZ0yURFqdw9Gwc7UOh/P9oQ==
|
||||
|
||||
typescript@^3.6.4:
|
||||
version "3.9.7"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.7.tgz#98d600a5ebdc38f40cb277522f12dc800e9e25fa"
|
||||
integrity sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw==
|
||||
|
||||
typescript@^4.1.0:
|
||||
version "4.1.2"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.2.tgz#6369ef22516fe5e10304aae5a5c4862db55380e9"
|
||||
integrity sha512-thGloWsGH3SOxv1SoY7QojKi0tc+8FnOmiarEGMbd/lar7QOEd3hvlx3Fp5y6FlDUGl9L+pd4n2e+oToGMmhRQ==
|
||||
|
||||
typescript@^4.1.3:
|
||||
version "4.1.3"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.3.tgz#519d582bd94cba0cf8934c7d8e8467e473f53bb7"
|
||||
integrity sha512-B3ZIOf1IKeH2ixgHhj6la6xdwR9QrLC5d1VKeCSY4tvkqhF2eqd9O7txNlS0PO3GrBAFIdr3L1ndNwteUbZLYg==
|
||||
typescript@^4.2.4:
|
||||
version "4.2.4"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.4.tgz#8610b59747de028fda898a8aef0e103f156d0961"
|
||||
integrity sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==
|
||||
|
||||
uglify-js@3.4.x:
|
||||
version "3.4.10"
|
||||
|
|
Loading…
Reference in New Issue