Set logo img width and height

This commit is contained in:
Rafael 2021-12-20 11:02:26 -03:00 committed by Thomas Zarebczan
parent 89d84e0776
commit 79a4fa55e0

View file

@ -28,11 +28,18 @@ export default function Logo(props: Props) {
} }
if (type === 'small' || isMobile) { if (type === 'small' || isMobile) {
return <img className="header__navigation-logo" src={LOGO} />; return <img className="header__navigation-logo" src={LOGO} height={200} width={200} />;
} }
if (LOGO_WHITE_TEXT && LOGO_DARK_TEXT) { if (LOGO_WHITE_TEXT && LOGO_DARK_TEXT) {
return <img className="header__navigation-logo" src={isLightTheme ? LOGO_DARK_TEXT : LOGO_WHITE_TEXT} />; return (
<img
className="header__navigation-logo"
height={300}
width={1000}
src={isLightTheme ? LOGO_DARK_TEXT : LOGO_WHITE_TEXT}
/>
);
} }
return defaultWithLabel; return defaultWithLabel;