From 102b6a1afa9bf6117fb01a31b22eae52974ff0e1 Mon Sep 17 00:00:00 2001 From: sumi-0011 Date: Sun, 23 Jul 2023 22:59:07 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20share=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/dna/LoadedDna.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/pages/dna/LoadedDna.tsx b/src/pages/dna/LoadedDna.tsx index 3ddfdd56..45a5627c 100644 --- a/src/pages/dna/LoadedDna.tsx +++ b/src/pages/dna/LoadedDna.tsx @@ -22,7 +22,7 @@ import { getUserInfoBySurveyIdQueryKey } from '~/hooks/api/user/useGetUserInfoBy import useInternalRouter from '~/hooks/router/useInternalRouter'; import { BODY_1, HEAD_2_BOLD } from '~/styles/typo'; import { detectMobileDevice, getBrowser } from '~/utils/browser'; -import { imageDownloadPC, imageShare } from '~/utils/image'; +import { imageDownloadPC } from '~/utils/image'; import { type Group } from '~/utils/resultLogic'; import { type DnaOwnerStatus } from './type'; @@ -76,11 +76,12 @@ const LoadedDna: FC = ({ const imageBase64 = 'data:image/png;base64,' + imageObj.base64 ?? ''; const browser = getBrowser(); - if (typeof navigator.share !== 'undefined') { - const isImageShared = await imageShare(imageBase64); + // TODO: share 갤러리에 저장 기능 되살리기 + // if (typeof navigator.share !== 'undefined') { + // const isImageShared = await imageShare(imageBase64); - if (isImageShared) return; - } + // if (isImageShared) return; + // } if (!detectMobileDevice() || browser === 'Safari') { imageDownloadPC(imageBase64, 'dna'); @@ -110,7 +111,7 @@ const LoadedDna: FC = ({ DNA 이미지 - {dnaOwnerStatus === 'current_user' && ( + {true && (