Skip to content

Commit

Permalink
chores
Browse files Browse the repository at this point in the history
  • Loading branch information
cihanandac committed Jun 24, 2024
1 parent 793347a commit fa50fca
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect } from 'react';
import React, { useLayoutEffect } from 'react';
import { useSelector } from 'react-redux';
import { Logo, Navigation } from '@plone/volto/components';
import { BodyClass, isCmsUi } from '@plone/volto/helpers';
Expand Down Expand Up @@ -42,7 +42,7 @@ const Header = (props) => {
// For fixing the chaotic loading of the website
// This forces the website to have a default background color
// For the first 1 second of the loading on the homepage
useEffect(() => {
useLayoutEffect(() => {
let backgroundColor;
let itemColor;
let pagelocation = props.pathname;
Expand Down

0 comments on commit fa50fca

Please sign in to comment.