diff --git a/src/menu-items/index.tsx b/src/menu-items/index.tsx index 3bbc552..77767ef 100644 --- a/src/menu-items/index.tsx +++ b/src/menu-items/index.tsx @@ -37,22 +37,22 @@ const radiator = { title: 'Navigation', type: 'group', children: [ - { - id: 'dashboard', - title: 'Dashboard', - type: 'item', - url: '/', - icon: icons.DashboardOutlined, - breadcrumbs: false - }, - { - id: 'ventures', - title: 'Ventures', - type: 'item', - url: '/ventures', - icon: icons.FileOutlined, - breadcrumbs: false - }, + // { + // id: 'dashboard', + // title: 'Dashboard', + // type: 'item', + // url: '/', + // icon: icons.DashboardOutlined, + // breadcrumbs: false + // }, + // { + // id: 'ventures', + // title: 'Ventures', + // type: 'item', + // url: '/ventures', + // icon: icons.FileOutlined, + // breadcrumbs: false + // }, { id: 'evaluations', title: 'Evaluation', @@ -61,14 +61,14 @@ const radiator = { icon: icons.QuestionOutlined, breadcrumbs: false }, - { - id: 'contributors', - title: 'Contributors', - type: 'item', - url: '/contributors', - icon: icons.FileOutlined, - breadcrumbs: false - } + // { + // id: 'contributors', + // title: 'Contributors', + // type: 'item', + // url: '/contributors', + // icon: icons.FileOutlined, + // breadcrumbs: false + // } ] } diff --git a/src/pages/evaluation/meetingsPanel.tsx b/src/pages/evaluation/meetingsPanel.tsx index 1d4f3e7..31fe140 100644 --- a/src/pages/evaluation/meetingsPanel.tsx +++ b/src/pages/evaluation/meetingsPanel.tsx @@ -64,17 +64,18 @@ export const MeetingsPanel: React.FC = ({ venture }) => { }, [taskGroup]); - const handleEditClick = (id: GridRowId) => async () => { - const selected: Meeting = pageInfo.rows.find(m => m.id === id) - // const selected = pageInfo.rows.find(m => m.id === id) - Promise.all(selected.attendanceIds - .map(async attId => dasAttendanceService.getById(attId))) - .then(attendances => { - console.log('attendances', attendances) - selected.attendances = attendances; - setSelectedMeeting(selected) - setShowCreateDialog(true) - }) + const handleEditClick = (_id: GridRowId) => async () => { + alert('Not ready ') + // const selected: Meeting = pageInfo.rows.find(m => m.id === id) + // // const selected = pageInfo.rows.find(m => m.id === id) + // Promise.all(selected.attendanceIds + // .map(async attId => dasAttendanceService.getById(attId))) + // .then(attendances => { + // console.log('attendances', attendances) + // selected.attendances = attendances; + // setSelectedMeeting(selected) + // setShowCreateDialog(true) + // }) }; const handleAddClick = () => { diff --git a/src/pages/evaluation/staffingPanel.tsx b/src/pages/evaluation/staffingPanel.tsx index 2a718cb..12f72f1 100644 --- a/src/pages/evaluation/staffingPanel.tsx +++ b/src/pages/evaluation/staffingPanel.tsx @@ -54,11 +54,12 @@ export const StaffingPanel: React.FC = ({ venture }) => { // } // }, [volunteers, taskGroup]) - const handleEditClick = (id: GridRowId) => () => { - console.log(id) + const handleEditClick = (_id: GridRowId) => () => { + alert('Not ready ') }; const handleAddClick = () => { + alert('Not ready ') }; const getColumns = (): GridColDef[] => { diff --git a/src/pages/routes.tsx b/src/pages/routes.tsx index 95198ec..9a47f9f 100644 --- a/src/pages/routes.tsx +++ b/src/pages/routes.tsx @@ -1,3 +1,4 @@ +import { redirect } from 'react-router'; import MainLayout from '../layout/MainLayout'; import MinimalLayout from '../layout/MinimalLayout'; import PrivacyPage from './PrivacyPage'; @@ -17,6 +18,10 @@ const routes = [ children: [ { path: "", + element: , + }, + { + path: "dashboard", element: , }, { @@ -38,8 +43,7 @@ const routes = [ { path: "evaluations", element: , - } - , + }, { path: "evaluation/:id", element: ,