@@ -14,6 +14,7 @@ import Comment from './components/Comment';
1414import CommentDetailModal from './components/CommentDetailModal' ;
1515import WriteCommentButton from './components/WriteCommentButton' ;
1616import useAuthStore from '@/stores/authStore' ;
17+ import ReportModal from '@/components/ReportModal' ;
1718
1819const MESSAGE_SIZE = 10 ;
1920
@@ -22,6 +23,7 @@ const RollingPaperPage = () => {
2223 const [ activeComment , setActiveComment ] = useState < RollingPaperComment | null > ( null ) ;
2324 const [ activeDetailModal , setActiveDetailModal ] = useState ( false ) ;
2425 const [ activeDeleteModal , setActiveDeleteModal ] = useState ( false ) ;
26+ const [ activeReportModal , setActiveReportModal ] = useState ( false ) ;
2527 const zipCode = useAuthStore ( ( props ) => props . zipCode ) ;
2628 const queryClient = useQueryClient ( ) ;
2729
@@ -69,6 +71,17 @@ const RollingPaperPage = () => {
6971 setActiveDetailModal ( false ) ;
7072 setActiveDeleteModal ( true ) ;
7173 } }
74+ onReport = { ( ) => {
75+ setActiveDetailModal ( false ) ;
76+ setActiveReportModal ( true ) ;
77+ } }
78+ />
79+ ) }
80+ { activeReportModal && (
81+ < ReportModal
82+ reportType = "EVENT_COMMENT"
83+ letterId = { Number ( activeComment ?. commentId ) }
84+ onClose = { ( ) => setActiveReportModal ( false ) }
7285 />
7386 ) }
7487 { activeDeleteModal && (
@@ -90,7 +103,7 @@ const RollingPaperPage = () => {
90103 < main className = "z-1 flex grow flex-col items-center px-5 pt-20 pb-12" >
91104 < PageTitle className = "mb-18 max-w-73 text-center" > { title } </ PageTitle >
92105 < p className = "body-sb text-gray-60 mb-2 w-full" > 등록된 편지 { totalComments } </ p >
93- < section className = "w-full" >
106+ < section className = "mb-4 w-full" >
94107 < MasonryInfiniteGrid column = { 2 } align = "stretch" gap = { 16 } onRequestAppend = { handleLoadMore } >
95108 { isSuccess &&
96109 allComments . map ( ( comment ) => (
0 commit comments