Change empty chain image to icns logo

This commit is contained in:
delivan 2022-12-18 18:45:49 +09:00
parent a61856557c
commit eead90d4b9
3 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
import { useState } from "react"; import { useState } from "react";
import Image, { ImageProps } from "next/image"; import Image, { ImageProps } from "next/image";
import KeplrIcon from "../../public/images/svg/keplr-icon.svg"; import ICNSLogo from "../../public/images/icns-logo-120x120.png";
import styled from "styled-components"; import styled from "styled-components";
export const ChainImage = ({ src, ...props }: ImageProps) => { export const ChainImage = ({ src, ...props }: ImageProps) => {
@ -14,7 +14,7 @@ export const ChainImage = ({ src, ...props }: ImageProps) => {
src={srcState} src={srcState}
alt="chain image" alt="chain image"
sizes="3rem" sizes="3rem"
onError={() => setSrcState(KeplrIcon)} onError={() => setSrcState(ICNSLogo)}
/> />
</ImageWrapper> </ImageWrapper>
); );

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB