Skip to content

Commit

Permalink
Merge pull request #66 from Beside-Potenday/seungbeom
Browse files Browse the repository at this point in the history
fix: request 타입 수정
  • Loading branch information
seung365 authored Aug 7, 2024
2 parents f3c194a + 2dd5245 commit c4ff7ce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Provider/MailContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export const MailProvider = ({ children }: { children: ReactNode }) => {
const [mailResult, setMailResult] = useState<MailPostData>({
subject: '',
body: '',
job: '',
});

const handleMailResult = (mailResult: MailPostData) => {
Expand Down
2 changes: 2 additions & 0 deletions src/components/Mail/MailModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export const MailModal = ({ isOpen, onOpen, onClose }: MailModalProps) => {
handleMailResult({
subject: data.title,
body: data.content,
job: 'univ',
});
},
onError: (error) => {
Expand Down Expand Up @@ -156,6 +157,7 @@ export const MailModal = ({ isOpen, onOpen, onClose }: MailModalProps) => {
handleMailResult({
subject: data.title,
body: data.content,
job: 'business',
});
},
onError: (error) => {
Expand Down
1 change: 1 addition & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export interface AuthContextType {
export interface MailPostData {
subject: string;
body: string;
job: string;
}

export interface MailGetData {
Expand Down

0 comments on commit c4ff7ce

Please sign in to comment.