From 5090dff340fcdee5dd87c9929beb5e4647998219 Mon Sep 17 00:00:00 2001 From: Bastien DUMONT <bdumont@grandlyon.com> Date: Thu, 3 Oct 2024 14:13:49 +0200 Subject: [PATCH] chore: fix incorrect type to props --- .../Analysis/ProfileComparator/ProfileComparator.tsx | 2 +- .../__snapshots__/ProfileComparator.spec.tsx.snap | 4 ++-- .../Analysis/ProfileComparator/profileComparator.scss | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/Analysis/ProfileComparator/ProfileComparator.tsx b/src/components/Analysis/ProfileComparator/ProfileComparator.tsx index 3ff398827..097182f98 100644 --- a/src/components/Analysis/ProfileComparator/ProfileComparator.tsx +++ b/src/components/Analysis/ProfileComparator/ProfileComparator.tsx @@ -142,7 +142,7 @@ const ProfileComparator = ({ > {t('analysis.accessibility.button_go_to_profil')} </Button> - <StyledIcon icon={PlaceHolderIcon} width="100%" height="60%" /> + <StyledIcon icon={PlaceHolderIcon} height={150} /> </div> ) diff --git a/src/components/Analysis/ProfileComparator/__snapshots__/ProfileComparator.spec.tsx.snap b/src/components/Analysis/ProfileComparator/__snapshots__/ProfileComparator.spec.tsx.snap index 40897d20f..bf328e562 100644 --- a/src/components/Analysis/ProfileComparator/__snapshots__/ProfileComparator.spec.tsx.snap +++ b/src/components/Analysis/ProfileComparator/__snapshots__/ProfileComparator.spec.tsx.snap @@ -49,8 +49,8 @@ exports[`AnalysisConsumption component should be rendered correctly with profile <svg aria-hidden="true" class="styles__icon___23x3R" - height="60%" - width="100%" + height="150" + width="16" > <use xlink:href="#test-file-stub" diff --git a/src/components/Analysis/ProfileComparator/profileComparator.scss b/src/components/Analysis/ProfileComparator/profileComparator.scss index 266ca39ce..3b5d0afcd 100644 --- a/src/components/Analysis/ProfileComparator/profileComparator.scss +++ b/src/components/Analysis/ProfileComparator/profileComparator.scss @@ -65,4 +65,8 @@ button { max-width: $width-small-phone; } + + svg { + width: 100%; + } } -- GitLab