Skip to content

Commit 7607f68

Browse files
committed
Merge branch 'main' of https://github.com/prgrms-web-devcourse-final-project/WEB2_3_9crops_FE into 157-deploy-real-6th
2 parents d67369b + 14e7176 commit 7607f68

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed

src/apis/auth.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export const getNewToken = async () => {
3333
try {
3434
const response = await client.post('/api/reissue', {}, { withCredentials: true });
3535
if (!response) throw new Error('getNewToken: no response data');
36+
console.log(response.data);
3637
return response;
3738
} catch (error) {
3839
console.error(error);

src/apis/client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ client.interceptors.request.use(
1212
const accessToken = useAuthStore.getState().accessToken;
1313
if (config.url !== '/api/reissue' && accessToken) {
1414
config.headers.Authorization = `Bearer ${accessToken}`;
15+
console.log('interceptor', config);
1516
}
1617
return config;
1718
},

src/apis/write.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import client from './client';
22

33
const postLetter = async (data: LetterRequest) => {
4+
console.log('request', data);
45
try {
56
const res = await client.post('/api/letters', data);
67
if (!res) throw new Error('편지 전송과정에서 오류가 발생했습니다.');
@@ -13,6 +14,7 @@ const postLetter = async (data: LetterRequest) => {
1314
};
1415

1516
const postFirstReply = async (data: FirstReplyRequest) => {
17+
console.log('Firstrequest', data);
1618
try {
1719
const res = await client.post('/api/random-letters/matching', data);
1820
if (!res) throw new Error('최초 답장 전송과정에서 오류가 발생했습니다.');

src/pages/LetterBoxDetail/components/InformationTooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const InformationTooltip = () => {
2424
</button>
2525
<article
2626
className={twMerge(
27-
'absolute top-6 -right-1 z-20 w-75 rounded-md bg-white p-4 drop-shadow-sm transition-opacity duration-200',
27+
'absolute top-6 -right-1 z-20 w-75 rounded-md bg-white p-4 drop-shadow-sm transition-opacity duration-200 dark:text-black',
2828
isShow ? 'opacity-100' : 'pointer-events-none opacity-0',
2929
)}
3030
>

src/pages/Share/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const ShareApprovalPage = () => {
2121

2222
const handleProposalApproval = async (action: 'approve' | 'reject') => {
2323
try {
24-
const result = await postShareProposalApproval(Number(shareProposalId), action);
24+
await postShareProposalApproval(Number(shareProposalId), action);
2525
if (action === 'approve') {
2626
setToastActive({
2727
toastType: 'Success',

0 commit comments

Comments
 (0)