File tree Expand file tree Collapse file tree 5 files changed +6
-2
lines changed
LetterBoxDetail/components Expand file tree Collapse file tree 5 files changed +6
-2
lines changed Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 } ,
Original file line number Diff line number Diff line change 11import client from './client' ;
22
33const 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
1516const 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 ( '최초 답장 전송과정에서 오류가 발생했습니다.' ) ;
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments