Remove next image warning
This commit is contained in:
parent
a3dc47b5eb
commit
13de62028d
@ -6,5 +6,12 @@ import KeplrIcon from "../../public/images/svg/keplr-icon.svg";
|
|||||||
export const ChainImage = (props: ImageProps) => {
|
export const ChainImage = (props: ImageProps) => {
|
||||||
const [src, setSrc] = useState(props.src);
|
const [src, setSrc] = useState(props.src);
|
||||||
|
|
||||||
return <Image {...props} src={src} onError={() => setSrc(KeplrIcon)} />;
|
return (
|
||||||
|
<Image
|
||||||
|
{...props}
|
||||||
|
src={src}
|
||||||
|
sizes="3rem"
|
||||||
|
onError={() => setSrc(KeplrIcon)}
|
||||||
|
/>
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
@ -52,7 +52,12 @@ export const WalletItem: FunctionComponent<Props> = (props: Props) => {
|
|||||||
return (
|
return (
|
||||||
<WalletContainer isReady={wallet.isReady} onClick={onClickWalletItem}>
|
<WalletContainer isReady={wallet.isReady} onClick={onClickWalletItem}>
|
||||||
<WalletIcon>
|
<WalletIcon>
|
||||||
<Image src={wallet.image} fill={true} alt="wallet Icon" />
|
<Image
|
||||||
|
src={wallet.image}
|
||||||
|
fill={true}
|
||||||
|
sizes="3.75rem"
|
||||||
|
alt="wallet Icon"
|
||||||
|
/>
|
||||||
</WalletIcon>
|
</WalletIcon>
|
||||||
<WalletContentContainer>
|
<WalletContentContainer>
|
||||||
<WalletName>{wallet.name}</WalletName>
|
<WalletName>{wallet.name}</WalletName>
|
||||||
|
@ -6,15 +6,35 @@ import Link from "next/link";
|
|||||||
import LogoIcon from "../../public/images/svg/logo.svg";
|
import LogoIcon from "../../public/images/svg/logo.svg";
|
||||||
|
|
||||||
// Styles
|
// Styles
|
||||||
import { LogoContainer } from "./styled";
|
import styled from "styled-components";
|
||||||
import { FunctionComponent } from "react";
|
import { FunctionComponent } from "react";
|
||||||
|
|
||||||
export const Logo: FunctionComponent = () => {
|
export const Logo: FunctionComponent = () => {
|
||||||
return (
|
return (
|
||||||
<Link href="/">
|
<Link href="/">
|
||||||
<LogoContainer>
|
<LogoContainer>
|
||||||
<Image src={LogoIcon} fill={true} alt="Home Logo" />
|
<Image
|
||||||
|
src={LogoIcon}
|
||||||
|
fill={true}
|
||||||
|
sizes="10rem"
|
||||||
|
alt="Home Logo"
|
||||||
|
priority
|
||||||
|
/>
|
||||||
</LogoContainer>
|
</LogoContainer>
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const LogoContainer = styled.div`
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
position: absolute;
|
||||||
|
|
||||||
|
width: 10rem;
|
||||||
|
height: 5rem;
|
||||||
|
|
||||||
|
margin-top: 80px;
|
||||||
|
margin-left: 80px;
|
||||||
|
`;
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
// Styles
|
|
||||||
import styled from "styled-components";
|
|
||||||
|
|
||||||
export const LogoContainer = styled.div`
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
|
|
||||||
position: absolute;
|
|
||||||
|
|
||||||
width: 160px;
|
|
||||||
height: 80px;
|
|
||||||
|
|
||||||
margin-top: 80px;
|
|
||||||
margin-left: 80px;
|
|
||||||
`;
|
|
@ -1,10 +1,4 @@
|
|||||||
import {
|
import { Dispatch, FunctionComponent, SetStateAction } from "react";
|
||||||
Dispatch,
|
|
||||||
FunctionComponent,
|
|
||||||
SetStateAction,
|
|
||||||
useRef,
|
|
||||||
useState,
|
|
||||||
} from "react";
|
|
||||||
|
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
|
|
||||||
@ -24,7 +18,7 @@ export const SearchInput: FunctionComponent<Props> = (props) => {
|
|||||||
return (
|
return (
|
||||||
<SearchContainer>
|
<SearchContainer>
|
||||||
<SearchIconContainer>
|
<SearchIconContainer>
|
||||||
<Image src={SearchIcon} fill={true} alt="search icon" />
|
<Image src={SearchIcon} fill={true} sizes="1.3rem" alt="search icon" />
|
||||||
</SearchIconContainer>
|
</SearchIconContainer>
|
||||||
|
|
||||||
<SearchText
|
<SearchText
|
||||||
|
@ -17,6 +17,7 @@ export const TwitterProfile: FunctionComponent<Props> = (props) => {
|
|||||||
<Image
|
<Image
|
||||||
src={twitterProfileInformation?.profile_image_url ?? ""}
|
src={twitterProfileInformation?.profile_image_url ?? ""}
|
||||||
fill={true}
|
fill={true}
|
||||||
|
sizes="5rem"
|
||||||
alt="twitter profile image"
|
alt="twitter profile image"
|
||||||
/>
|
/>
|
||||||
</ProfileImageContainer>
|
</ProfileImageContainer>
|
||||||
|
@ -36,7 +36,13 @@ export default function Home() {
|
|||||||
<MainTitleContainer>
|
<MainTitleContainer>
|
||||||
<MainTitleImageBackground>
|
<MainTitleImageBackground>
|
||||||
<MainTitleImageContainer>
|
<MainTitleImageContainer>
|
||||||
<Image src={MainTitle} fill={true} alt="Main Title" />
|
<Image
|
||||||
|
src={MainTitle}
|
||||||
|
fill={true}
|
||||||
|
sizes="60rem"
|
||||||
|
alt="Main Title"
|
||||||
|
priority
|
||||||
|
/>
|
||||||
</MainTitleImageContainer>
|
</MainTitleImageContainer>
|
||||||
</MainTitleImageBackground>
|
</MainTitleImageBackground>
|
||||||
|
|
||||||
@ -48,14 +54,24 @@ export default function Home() {
|
|||||||
<SubContainer>
|
<SubContainer>
|
||||||
<CheckContainer>
|
<CheckContainer>
|
||||||
<CheckIconContainer>
|
<CheckIconContainer>
|
||||||
<Image src={CheckIcon} fill={true} alt="Check Icon" />
|
<Image
|
||||||
|
src={CheckIcon}
|
||||||
|
fill={true}
|
||||||
|
sizes="1.6rem"
|
||||||
|
alt="Check Icon"
|
||||||
|
/>
|
||||||
</CheckIconContainer>
|
</CheckIconContainer>
|
||||||
You are a <CheckBoldText> keplr </CheckBoldText> user.
|
You are a <CheckBoldText> keplr </CheckBoldText> user.
|
||||||
if not, you can install here
|
if not, you can install here
|
||||||
</CheckContainer>
|
</CheckContainer>
|
||||||
<CheckContainer>
|
<CheckContainer>
|
||||||
<CheckIconContainer>
|
<CheckIconContainer>
|
||||||
<Image src={CheckIcon} fill={true} alt="Check Icon" />
|
<Image
|
||||||
|
src={CheckIcon}
|
||||||
|
fill={true}
|
||||||
|
sizes="1.6rem"
|
||||||
|
alt="Check Icon"
|
||||||
|
/>
|
||||||
</CheckIconContainer>
|
</CheckIconContainer>
|
||||||
<CheckBoldText>Osmo </CheckBoldText> is required for this
|
<CheckBoldText>Osmo </CheckBoldText> is required for this
|
||||||
transaction
|
transaction
|
||||||
@ -64,7 +80,7 @@ export default function Home() {
|
|||||||
</MainTitleContainer>
|
</MainTitleContainer>
|
||||||
|
|
||||||
<MainLogoContainer>
|
<MainLogoContainer>
|
||||||
<Image src={MainLogo} layout="fixed" fill={true} alt="Main Logo" />
|
<Image src={MainLogo} fill={true} sizes="25rem" alt="Main Logo" />
|
||||||
</MainLogoContainer>
|
</MainLogoContainer>
|
||||||
</MainContainer>
|
</MainContainer>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user