Skip to content

Commit 7a421df

Browse files
committed
feat: myPage 데이터 바인딩 수정, api 추가
1 parent 0dc5aa8 commit 7a421df

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

src/apis/myPage.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,13 @@ export const fetchMyPageInfo = async () => {
99
console.error(error);
1010
}
1111
};
12+
13+
export const getMySharePostList = async () => {
14+
try {
15+
const response = await client.get('/api/share-proposal/inbox');
16+
if (!response) throw new Error('error while fetching my share post list');
17+
return response.data;
18+
} catch (error) {
19+
console.error(error);
20+
}
21+
};

src/pages/LetterBoxDetail/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ const LetterBoxDetailPage = () => {
7272
});
7373

7474
const shareMutation = useMutation({
75-
// Todo : useAuthStore -> myId 대체
7675
mutationFn: () => postShareProposals(selected, userInfo.id, shareComment),
7776
onSuccess: () => {
7877
toggleShareMode();

src/pages/MyPage/index.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,13 @@ const MyPage = () => {
8181
</div>
8282
<div className="flex flex-col gap-2">
8383
<h3 className="text-gray-40 body-sb">고객 센터</h3>
84-
<Link to="mailto:[email protected]">
85-
<p className="body-sb text-gray-100">운영자에게 문의하기</p>
86-
</Link>
84+
<a
85+
href="https://forms.gle/ZagrTSZzJhogudSY8"
86+
target="_blank"
87+
className="body-sb text-gray-100"
88+
>
89+
운영자에게 문의하기
90+
</a>
8791
</div>
8892
<div className="flex flex-col gap-2">
8993
<h3 className="text-gray-40 body-sb">계정</h3>

0 commit comments

Comments
 (0)