From 13de62028d61427e72e5ce0b0e012a62f2f8e3a7 Mon Sep 17 00:00:00 2001 From: HeesungB Date: Thu, 15 Dec 2022 13:25:07 +0900 Subject: [PATCH] Remove next image warning --- components/chain-list/chain-image.tsx | 9 ++++++- .../connect-wallet-modal/wallet-item.tsx | 7 +++++- components/logo/index.tsx | 24 +++++++++++++++++-- components/logo/styled.ts | 16 ------------- components/search-input/index.tsx | 10 ++------ components/twitter-profile/index.tsx | 1 + pages/index.tsx | 24 +++++++++++++++---- 7 files changed, 59 insertions(+), 32 deletions(-) delete mode 100644 components/logo/styled.ts diff --git a/components/chain-list/chain-image.tsx b/components/chain-list/chain-image.tsx index 167a5af..c40282f 100644 --- a/components/chain-list/chain-image.tsx +++ b/components/chain-list/chain-image.tsx @@ -6,5 +6,12 @@ import KeplrIcon from "../../public/images/svg/keplr-icon.svg"; export const ChainImage = (props: ImageProps) => { const [src, setSrc] = useState(props.src); - return setSrc(KeplrIcon)} />; + return ( + setSrc(KeplrIcon)} + /> + ); }; diff --git a/components/connect-wallet-modal/wallet-item.tsx b/components/connect-wallet-modal/wallet-item.tsx index 65f08bd..6416cc9 100644 --- a/components/connect-wallet-modal/wallet-item.tsx +++ b/components/connect-wallet-modal/wallet-item.tsx @@ -52,7 +52,12 @@ export const WalletItem: FunctionComponent = (props: Props) => { return ( - wallet Icon + wallet Icon {wallet.name} diff --git a/components/logo/index.tsx b/components/logo/index.tsx index eb1f80e..3f96f86 100644 --- a/components/logo/index.tsx +++ b/components/logo/index.tsx @@ -6,15 +6,35 @@ import Link from "next/link"; import LogoIcon from "../../public/images/svg/logo.svg"; // Styles -import { LogoContainer } from "./styled"; +import styled from "styled-components"; import { FunctionComponent } from "react"; export const Logo: FunctionComponent = () => { return ( - Home Logo + Home Logo ); }; + +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; +`; diff --git a/components/logo/styled.ts b/components/logo/styled.ts deleted file mode 100644 index d51df61..0000000 --- a/components/logo/styled.ts +++ /dev/null @@ -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; -`; diff --git a/components/search-input/index.tsx b/components/search-input/index.tsx index f535cbb..407e663 100644 --- a/components/search-input/index.tsx +++ b/components/search-input/index.tsx @@ -1,10 +1,4 @@ -import { - Dispatch, - FunctionComponent, - SetStateAction, - useRef, - useState, -} from "react"; +import { Dispatch, FunctionComponent, SetStateAction } from "react"; import Image from "next/image"; @@ -24,7 +18,7 @@ export const SearchInput: FunctionComponent = (props) => { return ( - search icon + search icon = (props) => { twitter profile image diff --git a/pages/index.tsx b/pages/index.tsx index 394c039..cdff9c5 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -36,7 +36,13 @@ export default function Home() { - Main Title + Main Title @@ -48,14 +54,24 @@ export default function Home() { - Check Icon + Check Icon You are a  keplr  user. if not, you can install here - Check Icon + Check Icon Osmo  is required for this transaction @@ -64,7 +80,7 @@ export default function Home() { - Main Logo + Main Logo