|
|
@@ -8,16 +8,23 @@ import { |
|
|
|
} from '@mui/material'; |
|
|
|
import * as DateUtils from "utils/DateUtils"; |
|
|
|
import * as StatusUtils from "pages/PublicNotice/ListPanel/PublicNoteStatusUtils"; |
|
|
|
import {useNavigate} from "react-router-dom"; |
|
|
|
// ==============================|| EVENT TABLE ||============================== // |
|
|
|
|
|
|
|
export default function SearchPublicNoticeTable({ recordList }) { |
|
|
|
const [rows, setRows] = React.useState(recordList); |
|
|
|
const [rowModesModel] = React.useState({}); |
|
|
|
const navigate = useNavigate() |
|
|
|
|
|
|
|
React.useEffect(() => { |
|
|
|
setRows(recordList); |
|
|
|
}, [recordList]); |
|
|
|
|
|
|
|
const handleEditClick = (params) => () => { |
|
|
|
navigate('/application/'+ params.id); |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const columns = [ |
|
|
|
{ |
|
|
|
id: 'appNo', |
|
|
@@ -80,8 +87,8 @@ export default function SearchPublicNoticeTable({ recordList }) { |
|
|
|
headerName: '', |
|
|
|
width: 100, |
|
|
|
cellClassName: 'actions', |
|
|
|
renderCell: () => { |
|
|
|
return <Button onClick={() => { }}>Details</Button>; |
|
|
|
renderCell: (params) => { |
|
|
|
return <Button onClick={handleEditClick(params)}>Details</Button>; |
|
|
|
}, |
|
|
|
} |
|
|
|
]; |
|
|
|