diff --git a/egovframe-template-simple-react-contribution/package.json b/egovframe-template-simple-react-contribution/package.json index 0507730..6fb3eca 100644 --- a/egovframe-template-simple-react-contribution/package.json +++ b/egovframe-template-simple-react-contribution/package.json @@ -7,6 +7,7 @@ "@emotion/styled": "^11.11.0", "@material-ui/core": "^4.12.4", "@material-ui/icons": "^4.11.3", + "@mui/icons-material": "^5.15.6", "@mui/material": "^5.14.19", "@mui/styles": "^5.15.3", "bootstrap": "^5.3.2", diff --git a/egovframe-template-simple-react-contribution/src/components/list/ListCreateUpdateDelete.jsx b/egovframe-template-simple-react-contribution/src/components/list/ListCreateUpdateDelete.jsx new file mode 100644 index 0000000..f32dfd5 --- /dev/null +++ b/egovframe-template-simple-react-contribution/src/components/list/ListCreateUpdateDelete.jsx @@ -0,0 +1,82 @@ +import React from 'react'; +import { styled } from '@mui/material/styles'; +import Box from '@mui/material/Box'; +import Paper from '@mui/material/Paper'; +import List from '@mui/material/List'; +import ListItem from '@mui/material/ListItem'; +import EditIcon from '@mui/icons-material/Edit'; +import ListItemText from '@mui/material/ListItemText'; +import IconButton from '@mui/material/IconButton'; +import Grid from '@mui/material/Grid'; +import Typography from '@mui/material/Typography'; +import DeleteIcon from '@mui/icons-material/Delete'; +import AddIcon from '@mui/icons-material/Add'; + + +function generate(items, element) { + return items.map((value) => + React.cloneElement(element, { + key: value, + }, ), + ); +} + +const Demo = styled('div')(({ theme }) => ({ + backgroundColor: theme.palette.background.paper, + })); + +const Item = styled(Paper)(({ theme }) => ({ + backgroundColor: theme.palette.mode === 'dark' ? '#1A2027' : '#fff', + ...theme.typography.body2, + padding: theme.spacing(1), + textAlign: 'center', + color: theme.palette.text.secondary, +})); + +function ListCreateUpdateDelete(props) { + + const [dense, setDense] = React.useState(false); + + return ( + + + + + {props.title} + + + + + + + + + + + + + {generate( + props.items, + + + + + + + + + } + > + , + )} + + + + ); +} + +export default ListCreateUpdateDelete; \ No newline at end of file diff --git a/egovframe-template-simple-react-contribution/src/pages/admin/committee/Schedules.jsx b/egovframe-template-simple-react-contribution/src/pages/admin/committee/Schedules.jsx index ea7dc60..7e9447b 100644 --- a/egovframe-template-simple-react-contribution/src/pages/admin/committee/Schedules.jsx +++ b/egovframe-template-simple-react-contribution/src/pages/admin/committee/Schedules.jsx @@ -245,6 +245,7 @@ function Schedules(props) { {/* */}