diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index ef8ec58ef..1930de5af 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -35,6 +35,7 @@ const Header: React.FC = ({ }) => { const { t } = useTranslation('menu'); const [mobileSearchActive, setMobileSearchActive] = useState(false); + const [logoLoaded, setLogoLoaded] = useState(false); const breakpoint = useBreakpoint(); const headerClassName = classNames(styles.header, styles[headerType], { [styles.mobileSearchActive]: mobileSearchActive && breakpoint <= Breakpoint.sm, @@ -78,11 +79,11 @@ const Header: React.FC = ({ {logoSrc && (
- + setLogoLoaded(true)} />
)}
{searchEnabled ? search : null}
diff --git a/src/components/Header/__snapshots__/Header.test.tsx.snap b/src/components/Header/__snapshots__/Header.test.tsx.snap index 65c232b1a..56da8be4e 100644 --- a/src/components/Header/__snapshots__/Header.test.tsx.snap +++ b/src/components/Header/__snapshots__/Header.test.tsx.snap @@ -39,17 +39,7 @@ exports[`
renders header 1`] = ` + />