mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-09 13:54:01 +00:00
fix url parse error
This commit is contained in:
@@ -48,6 +48,7 @@ export default function BrandingLogo(props: BrandingLogoProps) {
|
|||||||
// we use `img` tag here because the `logoPath` could be any URL
|
// we use `img` tag here because the `logoPath` could be any URL
|
||||||
// and next.js `Image` component only accepts a restricted number of domains
|
// and next.js `Image` component only accepts a restricted number of domains
|
||||||
const Component = props.logoPath ? "img" : Image;
|
const Component = props.logoPath ? "img" : Image;
|
||||||
|
const isNextImage = Component === Image;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
path && (
|
path && (
|
||||||
@@ -56,6 +57,11 @@ export default function BrandingLogo(props: BrandingLogoProps) {
|
|||||||
alt="Logo"
|
alt="Logo"
|
||||||
width={props.width}
|
width={props.width}
|
||||||
height={props.height}
|
height={props.height}
|
||||||
|
style={
|
||||||
|
isNextImage
|
||||||
|
? { width: "auto", height: "auto" }
|
||||||
|
: undefined
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user