fix(logo): update warning message for missing width or height props
This commit is contained in:
parent
aebbfb9f5d
commit
25ebb4bb3b
1 changed files with 2 additions and 2 deletions
|
@ -63,9 +63,9 @@ export default function Logo({
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (width === undefined || height === undefined) {
|
if (width === undefined && height === undefined) {
|
||||||
console.warn(
|
console.warn(
|
||||||
`Logo: 'width' and 'height' props are required by next/image for ${logoType} logo. Path: ${LOGO_BASE_PATH}logo_${colorType}_${logoType}_${theme}.${IMAGE_EXTENSION}`,
|
`Logo: 'width' or 'height' props are required by next/image for ${logoType} logo. Path: ${LOGO_BASE_PATH}logo_${colorType}_${logoType}_${theme}.${IMAGE_EXTENSION}`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue