Skip to content

Commit

Permalink
Fixes for speed test
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsBaumgartner1994 committed Jul 20, 2023
1 parent faca860 commit 49a69cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ interface AppState {
}
export const CookieInformation: FunctionComponent<AppState> = ({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";
Expand Down Expand Up @@ -129,10 +133,6 @@ export const CookieInformation: FunctionComponent<AppState> = ({autoOpenCookies,
isOpen = true;
}

if(!ConfigHolder.useCookiePolicy){
isOpen = false;
}

//isOpen = true;

// corresponding componentDidMount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const ShowMoreGradient: FunctionComponent<AppState> = (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) => (
Expand Down

0 comments on commit 49a69cd

Please sign in to comment.