File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export default function ReportManage() {
2828 reportType : null ,
2929 status : 'PENDING' ,
3030 page : '1' ,
31- size : '2 ' ,
31+ size : '1 ' ,
3232 } ) ;
3333
3434 const handleGetReports = async ( reportQueryString : ReportQueryString ) => {
@@ -47,14 +47,30 @@ export default function ReportManage() {
4747 setReportQueryString ( ( cur ) => ( { ...cur , page : page } ) ) ;
4848 } ;
4949
50+ const handleStatus = ( status : Status ) => {
51+ setReportQueryString ( ( cur ) => ( { ...cur , status : status } ) ) ;
52+ } ;
53+
5054 useEffect ( ( ) => {
5155 handleGetReports ( reportQueryString ) ;
5256 } , [ reportQueryString ] ) ;
5357 return (
5458 < >
5559 < AdminPageTitle > 검열 관리 / 신고 편지 목록</ AdminPageTitle >
5660 < WrapperFrame >
57- < WrapperTitle title = "신고 편지 목록" Icon = { AlarmIcon } />
61+ < div className = "flex items-center justify-between" >
62+ < WrapperTitle title = "신고 편지 목록" Icon = { AlarmIcon } />
63+ < select
64+ onChange = { ( e ) => {
65+ const status = e . currentTarget . value as Status ;
66+ handleStatus ( status ) ;
67+ } }
68+ >
69+ < option value = "PENDING" > 대기중</ option >
70+ < option value = "RESOLVED" > 승인됨</ option >
71+ < option value = "REJECTED" > 거절됨</ option >
72+ </ select >
73+ </ div >
5874
5975 < section className = "mt-5 flex flex-col" >
6076 < ListHeaderFrame >
Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ export default function PagenationNavigation({
5050 }
5151 } ;
5252
53- const buttonStyle = 'rounded-full bg-white w-8 h-8 disabled:bg-gray-20' ;
53+ const buttonStyle =
54+ 'rounded-full bg-white w-8 h-8 disabled:bg-gray-20 disabled:text-white disabled:cursor-auto' ;
5455
5556 return (
5657 < div className = "mt-5 flex h-10 w-full items-center justify-center" >
You can’t perform that action at this time.
0 commit comments