From ef77a5cd008a6fd559c89b4e9400919b5cc27fc0 Mon Sep 17 00:00:00 2001 From: zeppi Date: Sun, 25 Jul 2021 18:46:43 -0400 Subject: [PATCH] optimizedImage --- ui/component/logo/view.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/component/logo/view.jsx b/ui/component/logo/view.jsx index 597723350..ca8745712 100644 --- a/ui/component/logo/view.jsx +++ b/ui/component/logo/view.jsx @@ -4,6 +4,7 @@ import * as ICONS from 'constants/icons'; import { LOGO_TITLE, LOGO, LOGO_TEXT_LIGHT, LOGO_TEXT_DARK } from 'config'; import Icon from 'component/common/icon'; import { useIsMobile } from 'effects/use-screensize'; +import OptimizedImage from 'component/optimizedImage'; type Props = { type: string, @@ -21,12 +22,12 @@ export default function Logo(props: Props) { ); if (type === 'small' || (isMobile && type !== 'embed')) { - return LOGO ? : ; + return LOGO ? : ; } else if (type === 'embed') { if (LOGO_TEXT_LIGHT) { return ( <> - + ); } else { @@ -36,7 +37,7 @@ export default function Logo(props: Props) { if (LOGO_TEXT_LIGHT && LOGO_TEXT_DARK) { return ( <> - + ); } else {