From 4538aec2f082547c9d97e995f954a4f22781303e Mon Sep 17 00:00:00 2001 From: gengminy Date: Thu, 15 Sep 2022 01:07:43 +0900 Subject: [PATCH] =?UTF-8?q?:hammer:=20fix(prod):=20=ED=94=8C=EB=A0=88?= =?UTF-8?q?=EC=9D=B4=EC=8A=A4=ED=86=A0=EC=96=B4=20=EB=B0=8F=20=EC=95=B1?= =?UTF-8?q?=EC=8A=A4=ED=86=A0=EC=96=B4=20=EB=A7=81=ED=81=AC=20=EC=97=B0?= =?UTF-8?q?=EA=B2=B0=20#11?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/icons/appstore-mono-noborder.svg | 1 + src/assets/icons/appstore-mono.svg | 2 +- src/components/common/Footer.tsx | 31 ++++++++++++++------- src/pages/question/Result.tsx | 14 ++++++---- 4 files changed, 31 insertions(+), 17 deletions(-) create mode 100644 src/assets/icons/appstore-mono-noborder.svg diff --git a/src/assets/icons/appstore-mono-noborder.svg b/src/assets/icons/appstore-mono-noborder.svg new file mode 100644 index 0000000..125a550 --- /dev/null +++ b/src/assets/icons/appstore-mono-noborder.svg @@ -0,0 +1 @@ +App Store icon \ No newline at end of file diff --git a/src/assets/icons/appstore-mono.svg b/src/assets/icons/appstore-mono.svg index 125a550..17897e1 100644 --- a/src/assets/icons/appstore-mono.svg +++ b/src/assets/icons/appstore-mono.svg @@ -1 +1 @@ -App Store icon \ No newline at end of file +ionicons-v5_logos \ No newline at end of file diff --git a/src/components/common/Footer.tsx b/src/components/common/Footer.tsx index 82c6113..04e7797 100644 --- a/src/components/common/Footer.tsx +++ b/src/components/common/Footer.tsx @@ -1,32 +1,43 @@ import styled from 'styled-components'; import { ReactComponent as Instagram } from '../../assets/icons/instagram.svg'; -import { ReactComponent as AppStroe } from '../../assets/icons/appstore.svg'; +import { ReactComponent as AppStore } from '../../assets/icons/appstore.svg'; import { ReactComponent as PlayStore } from '../../assets/icons/playstore.svg'; import { ReactComponent as Github } from '../../assets/icons/github.svg'; +import { ToastsStore } from 'react-toasts'; const Footer = () => { + const useToast = (msg: string) => { + ToastsStore.info(msg); + }; + return (

© Ohzu. 2022 All rights reserved

- {/* */} - - + + - {/* */} - - + + {/* */} - - + useToast('준비 중입니다 :)')}> + - +
diff --git a/src/pages/question/Result.tsx b/src/pages/question/Result.tsx index 2879927..c3bb1a2 100644 --- a/src/pages/question/Result.tsx +++ b/src/pages/question/Result.tsx @@ -13,8 +13,10 @@ function Result() { const navigate = useNavigate(); const { state } = useLocation(); const [result, setResult] = useState(); - const playstoreUrl = ''; - const appstoreUrl = ''; + const playstoreUrl = + 'https://play.google.com/store/apps/details?id=com.ohzu.ohzu'; + const appstoreUrl = + 'https://apps.apple.com/kr/app/%EC%98%A4%EC%A5%AC/id1643634105'; useEffect(() => { try { @@ -87,16 +89,16 @@ function Result() { width={232} height={67} onClick={() => { - // openInNewTab(appstoreUrl); - useToast('준비 중입니다 :)'); + openInNewTab(appstoreUrl); + // useToast('준비 중입니다 :)'); }} /> { - // openInNewTab(playstoreUrl); - useToast('준비 중입니다 :)'); + openInNewTab(playstoreUrl); + // useToast('준비 중입니다 :)'); }} />