From 82ebd17dd4196368b7fb1a3a20216f950124254c Mon Sep 17 00:00:00 2001 From: Alex Cheung Date: Tue, 19 Sep 2023 09:59:58 +0800 Subject: [PATCH] add gld application search page to menu bar --- src/layout/MainLayout/Header/index.js | 2 +- src/pages/PublicNoticeSearch_GLD/DataGrid.js | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/layout/MainLayout/Header/index.js b/src/layout/MainLayout/Header/index.js index 7a62b2e..52b85a6 100644 --- a/src/layout/MainLayout/Header/index.js +++ b/src/layout/MainLayout/Header/index.js @@ -77,7 +77,7 @@ function Header(props) { Dashboard
  • - Application + Application
  • Proof diff --git a/src/pages/PublicNoticeSearch_GLD/DataGrid.js b/src/pages/PublicNoticeSearch_GLD/DataGrid.js index fd380b1..136c4f1 100644 --- a/src/pages/PublicNoticeSearch_GLD/DataGrid.js +++ b/src/pages/PublicNoticeSearch_GLD/DataGrid.js @@ -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 ; + renderCell: (params) => { + return ; }, } ];