back to img tag

This commit is contained in:
zeppi 2021-07-27 15:11:33 -04:00 committed by jessopb
parent b1e8d2d6db
commit 2a69c42e5b

View file

@ -4,7 +4,6 @@ import * as ICONS from 'constants/icons';
import { LOGO_TITLE, LOGO, LOGO_TEXT_LIGHT, LOGO_TEXT_DARK } from 'config'; import { LOGO_TITLE, LOGO, LOGO_TEXT_LIGHT, LOGO_TEXT_DARK } from 'config';
import Icon from 'component/common/icon'; import Icon from 'component/common/icon';
import { useIsMobile } from 'effects/use-screensize'; import { useIsMobile } from 'effects/use-screensize';
import OptimizedImage from 'component/optimizedImage';
type Props = { type Props = {
type: string, type: string,
@ -27,12 +26,12 @@ export default function Logo(props: Props) {
); );
if (type === 'small' || (isMobile && type !== 'embed')) { if (type === 'small' || (isMobile && type !== 'embed')) {
return LOGO ? <OptimizedImage src={LOGO} /> : <Icon icon={ICONS.LBRY} />; return LOGO ? <img src={LOGO} /> : <Icon icon={ICONS.LBRY} />;
} else if (type === 'embed') { } else if (type === 'embed') {
if (LOGO_TEXT_LIGHT) { if (LOGO_TEXT_LIGHT) {
return ( return (
<> <>
<OptimizedImage src={LOGO_TEXT_LIGHT} /> <img src={LOGO_TEXT_LIGHT} />
</> </>
); );
} else { } else {
@ -42,7 +41,7 @@ export default function Logo(props: Props) {
if (LOGO_TEXT_LIGHT && LOGO_TEXT_DARK) { if (LOGO_TEXT_LIGHT && LOGO_TEXT_DARK) {
return ( return (
<> <>
<OptimizedImage src={currentTheme === 'light' ? LOGO_TEXT_DARK : LOGO_TEXT_LIGHT} /> <img src={currentTheme === 'light' ? LOGO_TEXT_DARK : LOGO_TEXT_LIGHT} />
</> </>
); );
} else { } else {