File tree Expand file tree Collapse file tree 6 files changed +23
-16
lines changed Expand file tree Collapse file tree 6 files changed +23
-16
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export default function ReportHandlingModal({
2121 ) ;
2222 } ;
2323
24- const [ reportRequest , setReportRequest ] = useState < ReportRequest > ( {
24+ const [ reportRequest , setReportRequest ] = useState < PatchReportRequest > ( {
2525 status : 'RESOLVED' ,
2626 adminMemo : '' ,
2727 } ) ;
Original file line number Diff line number Diff line change 66 getSharePostDetail ,
77 postShareProposalApproval ,
88 SharePost ,
9- postSharePostLike ,
109 getSharePostLikeCount ,
1110} from '@/apis/share' ;
1211import BlurImg from '@/assets/images/landing-blur.png' ;
@@ -87,7 +86,13 @@ const LetterBoardDetailPage = ({ confirmDisabled }: ShareLetterPreviewProps) =>
8786
8887 return (
8988 < >
90- { activeReportModal && < ReportModal onClose = { ( ) => setActiveReportModal ( false ) } /> }
89+ { activeReportModal && (
90+ < ReportModal
91+ onClose = { ( ) => setActiveReportModal ( false ) }
92+ reportType = { 'SHARE_POST' }
93+ letterId = { null }
94+ />
95+ ) }
9196 < div className = "grow bg-white" >
9297 < Header
9398 likeCount = { likeCount }
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { useQuery } from '@tanstack/react-query';
22import { useNavigate } from 'react-router' ;
33import { twMerge } from 'tailwind-merge' ;
44
5- import { getMySharePostList } from '@/apis/mypage ' ;
5+ import { getMySharePostList } from '@/apis/myPage ' ;
66import BackgroundBottom from '@/components/BackgroundBottom' ;
77import PageTitle from '@/components/PageTitle' ;
88
@@ -45,16 +45,18 @@ const MyBoardPage = () => {
4545 < p > loading</ p >
4646 ) : (
4747 < section className = "mt-6 grid grid-cols-2 gap-x-5 gap-y-4" >
48- { postLists . map ( ( item , index ) => (
49- < LetterPreview
50- key = { index }
51- id = { item . sharePostId }
52- to = { item . writerZipCode }
53- from = "12E21"
54- content = "저희가 주고 받은 행운의 편지 저희가 주고 받은 행운의 편지 저희가 주고 받은 행운의 편지
48+ { postLists . map (
49+ ( item : { sharePostId : number ; writerZipCode : string } , index : number ) => (
50+ < LetterPreview
51+ key = { index }
52+ id = { item . sharePostId }
53+ to = { item . writerZipCode }
54+ from = "12E21"
55+ content = "저희가 주고 받은 행운의 편지 저희가 주고 받은 행운의 편지 저희가 주고 받은 행운의 편지
5556 저희가 주고 받은 행운의 편지"
56- />
57- ) ) }
57+ />
58+ ) ,
59+ ) }
5860 </ section >
5961 ) }
6062 </ main >
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const MatchedLetter = ({ matchedLetter }: { matchedLetter: MatchedLetter }) => {
1515
1616 return (
1717 < >
18- { reportModalOpen && < ReportModal onClose = { ( ) => setReportModalOpen ( false ) } /> }
18+ { reportModalOpen && < ReportModal onClose = { ( ) => setReportModalOpen ( false ) } reportType = { 'LETTER' } letterId = { null } /> }
1919 < div
2020 className = { twMerge (
2121 `flex grow flex-col gap-3 px-5 pb-7.5` ,
Original file line number Diff line number Diff line change 11import { create } from 'zustand' ;
22
3- import { fetchMyPageInfo } from '@/apis/mypage ' ;
3+ import { fetchMyPageInfo } from '@/apis/myPage ' ;
44
55interface MyPageDataStore {
66 zipCode : string ;
Original file line number Diff line number Diff line change 11type Status = 'PENDING' | 'RESOLVED' | 'REJECTED' ;
2- type ReportType = 'LETTER' | 'POST ' | 'COMMENT' ;
2+ type ReportType = 'LETTER' | 'SHARE_POST ' | 'COMMENT' ;
33type Reason = 'ABUSE' | 'DEFAMATION' | 'HARASSMENT' | 'THREATS' | 'ETC' ;
44
55interface ReportQueryString {
You can’t perform that action at this time.
0 commit comments