diff --git a/packages/web-domains/src/common/components/KakaoShare/generateKakaoShare.utils.ts b/packages/web-domains/src/common/components/KakaoShare/generateKakaoShare.utils.ts index b1838600..ffc5763f 100644 --- a/packages/web-domains/src/common/components/KakaoShare/generateKakaoShare.utils.ts +++ b/packages/web-domains/src/common/components/KakaoShare/generateKakaoShare.utils.ts @@ -12,7 +12,7 @@ interface ShareToKakaoProps { export const generateKakaoShare = ({ shareLink, shareImageUrl, shareDescription }: ShareToKakaoProps) => { const { Kakao } = window; - console.log(shareLink); + Kakao.Share.sendDefault({ objectType: 'feed', content: { diff --git a/packages/web-domains/src/common/utils/getWebDomain.ts b/packages/web-domains/src/common/utils/getWebDomain.ts index 9ca61e45..635d48e8 100644 --- a/packages/web-domains/src/common/utils/getWebDomain.ts +++ b/packages/web-domains/src/common/utils/getWebDomain.ts @@ -1,10 +1,9 @@ -const STAGE = process.env.NEXT_PUBLIC_STAGE; +// const STAGE = process.env.NEXT_PUBLIC_STAGE; export const getWebDomain = () => { - /** - * 왜 안됨? - */ - switch (STAGE) { + console.log(process.env.NEXT_PUBLIC_STAGE); + + switch (process.env.NEXT_PUBLIC_STAGE) { case 'production': return 'https://moring.one'; case 'development': diff --git a/packages/web-domains/src/home/features/notification/containers/NotificationContainer.tsx b/packages/web-domains/src/home/features/notification/containers/NotificationContainer.tsx index 3427108f..826babb8 100644 --- a/packages/web-domains/src/home/features/notification/containers/NotificationContainer.tsx +++ b/packages/web-domains/src/home/features/notification/containers/NotificationContainer.tsx @@ -4,14 +4,14 @@ import { ArrivedQuestionNotification } from '../components/ArrivedQuestionNotifi import { SelectedTargetMemberNotification } from '../components/SelectedTargetMemberNotification'; import { useNotificationService } from '../services/useNotificationService'; export const NotificationContainer = () => { - const { notfication, handleClose, isOpen, isNotAnswerd } = useNotificationService(); + const { notfication, handleClose, isOpen, isNotAnswerd, isNotRegistered } = useNotificationService(); return ( <> {notfication?.eventType === 'QUESTION_REGISTERED' && isNotAnswerd && ( )} - {notfication?.eventType === 'TARGET_MEMBER' && ( + {notfication?.eventType === 'TARGET_MEMBER' && isNotRegistered && ( )} diff --git a/packages/web-domains/src/home/features/notification/services/useNotificationService.ts b/packages/web-domains/src/home/features/notification/services/useNotificationService.ts index 6f9985f7..8f456c01 100644 --- a/packages/web-domains/src/home/features/notification/services/useNotificationService.ts +++ b/packages/web-domains/src/home/features/notification/services/useNotificationService.ts @@ -53,5 +53,6 @@ export const useNotificationService = () => { handleClose, isRefetching, isNotAnswerd: !progressingQuestionData?.isAnswered, + isNotRegistered: !progressingQuestionData?.isQuestionRegistered, }; };