Skip to content

Commit

Permalink
Merge pull request #100 from Beside-Potenday/seungbeom
Browse files Browse the repository at this point in the history
저장하기 알람
  • Loading branch information
seung365 authored Aug 8, 2024
2 parents c0c32b2 + dfc5764 commit 313a981
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/hooks/Mail/useGetMail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const getMailPath = (page: number, size: number) =>

const createApiClient = (job: string) => {
const token = sessionStorage.getItem('accessToken');
console.log(job);
return axios.create({
baseURL: BASE_URL,
headers: {
Expand All @@ -19,7 +20,6 @@ const createApiClient = (job: string) => {

const getMail = async (page: number, size: number, job: string) => {
try {
console.log(job, page, size);
const apiClient = createApiClient(job);
const response = await apiClient.get<MailListResponse>(getMailPath(page, size));
return response.data;
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 @@ -215,9 +215,11 @@ export const MailModal = ({ isOpen, onOpen, onClose }: MailModalProps) => {
const handlePutMail = () => {
if (authInfo) {
mailmutate({ ...mailResult });
alert('📨 저장이 완료되었습니다!');
} else {
alert('로그인 후 메일을 저장 할 수 있습니다.');
}
onClose();
};

useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Mail/MailModalData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const placeholderTextsBusiness = [
];

export const modalHeaderContentBusiness = [
'메일 작성 목적을 선택해 주세요',
'메일 작성 목적을 입력해 주세요',
'보내는 사람의 이름을 입력해 주세요',
'소속 회사명을 입력해 주세요',
'소속 부서를 입력해 주세요',
Expand Down

0 comments on commit 313a981

Please sign in to comment.