From b6a60dff2c047d6b32646f3573cee7d22ef3d161 Mon Sep 17 00:00:00 2001 From: Hugo Lextrait Date: Tue, 21 Feb 2023 15:07:07 +0100 Subject: [PATCH] last fix review --- src/front/components/DesignSystem/Modal/index.tsx | 11 +++-------- .../DesignSystem/Typography/classes.module.scss | 2 +- src/front/components/Layouts/DesignSystem/index.tsx | 13 +++++++++++-- src/front/themes/fonts.scss | 7 +------ 4 files changed, 16 insertions(+), 17 deletions(-) diff --git a/src/front/components/DesignSystem/Modal/index.tsx b/src/front/components/DesignSystem/Modal/index.tsx index 52ea7bbe..bfdaec0d 100644 --- a/src/front/components/DesignSystem/Modal/index.tsx +++ b/src/front/components/DesignSystem/Modal/index.tsx @@ -29,8 +29,7 @@ export default class Modal

ext constructor(props: P) { super(props); this.close = this.close.bind(this); - this.closeOnBackgroundClick = this.closeOnBackgroundClick.bind(this); - + (this.state as any) = { isOpen: props.isOpen ?? true, }; @@ -41,13 +40,13 @@ export default class Modal

ext return (

-
+
{this.props.closeBtn && (
- Unplugged + Unplugged
)}
@@ -73,10 +72,6 @@ export default class Modal

ext } } - private closeOnBackgroundClick() { - this.close(); - } - protected close() { this.setState({ isOpen: false, diff --git a/src/front/components/DesignSystem/Typography/classes.module.scss b/src/front/components/DesignSystem/Typography/classes.module.scss index d1c3b9fb..380f2115 100644 --- a/src/front/components/DesignSystem/Typography/classes.module.scss +++ b/src/front/components/DesignSystem/Typography/classes.module.scss @@ -3,7 +3,7 @@ .root { color: $black; - + font-family: 'Inter', sans-serif; &.H1-60 { font-style: normal; font-weight: 500; diff --git a/src/front/components/Layouts/DesignSystem/index.tsx b/src/front/components/Layouts/DesignSystem/index.tsx index 42930409..179308bd 100644 --- a/src/front/components/Layouts/DesignSystem/index.tsx +++ b/src/front/components/Layouts/DesignSystem/index.tsx @@ -59,7 +59,17 @@ export default class DesignSystem extends BasePage { Modal components

- Lorem ipsum dolor sit amet consectetur. Aliquam nunc lobortis lacus vulputate sagittis sed tempor eget feugiat. Elementum malesuada at sit elit. + + + Lorem ipsum dolor sit amet consectetur. Aliquam nunc lobortis lacus vulputate sagittis sed tempor eget feugiat. Elementum malesuada at sit elit. + +
@@ -67,7 +77,6 @@ export default class DesignSystem extends BasePage { ); } private openModal() { - console.log("Modal Up") this.setState({ isModalDisplayed: true }) diff --git a/src/front/themes/fonts.scss b/src/front/themes/fonts.scss index d811d91a..0e5e7576 100644 --- a/src/front/themes/fonts.scss +++ b/src/front/themes/fonts.scss @@ -1,6 +1 @@ -@font-face { - font-family: 'Proxima Nova'; - src: url('/fonts/ProximaNova-Thin.woff2') format('woff2'), url('/fonts/ProximaNova-Thin.woff') format('woff'); - font-weight: 100; - font-style: normal; -} \ No newline at end of file +@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap'); \ No newline at end of file