Set logo img width and height
This commit is contained in:
parent
89d84e0776
commit
79a4fa55e0
1 changed files with 9 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue