diff --git a/src/components/resolvedicon.jsx b/src/components/resolvedicon.jsx index 2a3701e8..3dad2b0e 100644 --- a/src/components/resolvedicon.jsx +++ b/src/components/resolvedicon.jsx @@ -1,9 +1,9 @@ import Image from "next/future/image"; -export default function ResolvedIcon({ icon }) { +export default function ResolvedIcon({ icon, width = 32, height = 32 }) { // direct or relative URLs if (icon.startsWith("http") || icon.startsWith("/")) { - return logo; + return logo; } // mdi- prefixed, material design icons @@ -12,8 +12,8 @@ export default function ResolvedIcon({ icon }) { return (
); diff --git a/src/components/widgets/logo/logo.jsx b/src/components/widgets/logo/logo.jsx index 29ec3e2e..96e8569f 100644 --- a/src/components/widgets/logo/logo.jsx +++ b/src/components/widgets/logo/logo.jsx @@ -1,64 +1,61 @@ -import Image from "next/future/image"; +import ResolvedIcon from "components/resolvedicon" export default function Logo({ options }) { return (
- {options.source ? - logo : - - // if source parameter is not set, use fallback homepage logo -
- - - - : + // fallback to homepage logo + + + + + + - - - - - - - -
+ + + + }
)