forked from LaconicNetwork/icns-frontend
Change empty chain image to icns logo
This commit is contained in:
parent
a61856557c
commit
eead90d4b9
@ -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 |
BIN
public/images/icns-logo-120x120.png
Normal file
BIN
public/images/icns-logo-120x120.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.3 KiB |
Loading…
Reference in New Issue
Block a user