From 2dd5245739f9be051f108b985a390b51160a9b88 Mon Sep 17 00:00:00 2001 From: seung365 Date: Wed, 7 Aug 2024 22:29:11 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20request=20=ED=83=80=EC=9E=85=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Provider/MailContext.tsx | 1 + src/components/Mail/MailModal.tsx | 2 ++ src/types/index.ts | 1 + 3 files changed, 4 insertions(+) diff --git a/src/Provider/MailContext.tsx b/src/Provider/MailContext.tsx index 2911e0d..421a379 100644 --- a/src/Provider/MailContext.tsx +++ b/src/Provider/MailContext.tsx @@ -46,6 +46,7 @@ export const MailProvider = ({ children }: { children: ReactNode }) => { const [mailResult, setMailResult] = useState({ subject: '', body: '', + job: '', }); const handleMailResult = (mailResult: MailPostData) => { diff --git a/src/components/Mail/MailModal.tsx b/src/components/Mail/MailModal.tsx index b0301a3..b916141 100644 --- a/src/components/Mail/MailModal.tsx +++ b/src/components/Mail/MailModal.tsx @@ -112,6 +112,7 @@ export const MailModal = ({ isOpen, onOpen, onClose }: MailModalProps) => { handleMailResult({ subject: data.title, body: data.content, + job: 'univ', }); }, onError: (error) => { @@ -156,6 +157,7 @@ export const MailModal = ({ isOpen, onOpen, onClose }: MailModalProps) => { handleMailResult({ subject: data.title, body: data.content, + job: 'business', }); }, onError: (error) => { diff --git a/src/types/index.ts b/src/types/index.ts index e55f433..b988a74 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -49,6 +49,7 @@ export interface AuthContextType { export interface MailPostData { subject: string; body: string; + job: string; } export interface MailGetData {