From 49a69cd0ee140a4ca5ac0de1bddd735d38cd3850 Mon Sep 17 00:00:00 2001 From: Nils Date: Thu, 20 Jul 2023 16:33:15 +0200 Subject: [PATCH] Fixes for speed test --- .../screens/legalRequirements/CookieInformation.tsx | 8 ++++---- .../KitchenHelper/utils/ShowMoreGradient.tsx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/api/src/ignoreCoverage/KitchenHelper/screens/legalRequirements/CookieInformation.tsx b/app/src/api/src/ignoreCoverage/KitchenHelper/screens/legalRequirements/CookieInformation.tsx index 6afaccf..2a3b804 100644 --- a/app/src/api/src/ignoreCoverage/KitchenHelper/screens/legalRequirements/CookieInformation.tsx +++ b/app/src/api/src/ignoreCoverage/KitchenHelper/screens/legalRequirements/CookieInformation.tsx @@ -34,6 +34,10 @@ interface AppState { } export const CookieInformation: FunctionComponent = ({autoOpenCookies, ...props}) => { + if(!ConfigHolder.useCookiePolicy){ + return null; + } + const menu_key_cookie_consent = "cookieConsent"; const menu_key_cookie_details = "cookieDetails"; const menu_key_cookie_about = "cookieAbout"; @@ -129,10 +133,6 @@ export const CookieInformation: FunctionComponent = ({autoOpenCookies, isOpen = true; } - if(!ConfigHolder.useCookiePolicy){ - isOpen = false; - } - //isOpen = true; // corresponding componentDidMount diff --git a/app/src/api/src/ignoreCoverage/KitchenHelper/utils/ShowMoreGradient.tsx b/app/src/api/src/ignoreCoverage/KitchenHelper/utils/ShowMoreGradient.tsx index 3b03503..ba32eb4 100644 --- a/app/src/api/src/ignoreCoverage/KitchenHelper/utils/ShowMoreGradient.tsx +++ b/app/src/api/src/ignoreCoverage/KitchenHelper/utils/ShowMoreGradient.tsx @@ -42,7 +42,7 @@ export const ShowMoreGradient: FunctionComponent = (props) => { const heightWidthStyle = horizontal ? {height: "100%"} : {width: "100%"}; // Custom LinearGradient - const steps = new Array(50).fill(0); + const steps = new Array(5).fill(0); return( <> {steps.map((_, i) => (