-
+
+
+ 팀
+
+
-
-
+
+
+
+
+ }
+ label="심의마감일"
+ value={msCdate}
+ inputFormat="yyyy-MM-dd"
+ mask="____-__-__"
+ onChange={(newValue) => {
+ setMsCdate(format(newValue, 'yyyy-MM-dd'));
+ }}
+ />
+
+
+
+
+ }
+ renderInput={(props) => }
+ label="심의마감시간"
+ value={msClosesi}
+ inputFormat="HH"
+ mask="__"
+ onChange={(newValue) => {
+ setMsClosesi(format(newValue, 'HH'));
+ }}
+ />
+
+
+
+
+
>
);
diff --git a/src/views/form/Modal/CmmModal.jsx b/src/views/form/Modal/CmmModal.jsx
index aaa003a..c52dde0 100644
--- a/src/views/form/Modal/CmmModal.jsx
+++ b/src/views/form/Modal/CmmModal.jsx
@@ -5,7 +5,11 @@ import Box from '@mui/material/Box';
import Button from '@mui/material/Button';
import Typography from '@mui/material/Typography';
import Modal from '@mui/material/Modal';
-import { Divider, Grid } from '@mui/material';
+import { Divider, Grid, IconButton } from '@mui/material';
+import CloseIcon from '@mui/icons-material/Close';
+import MainCard from 'ui-component/cards/MainCard';
+import { styled } from '@mui/material/styles';
+import { useRef } from 'react';
const style = {
position: 'absolute',
@@ -19,7 +23,9 @@ const style = {
p: 4
};
-export default function CmmModal({ isBackdrop = false, open, setOpen, title, children, callback = () => {} }) {
+const CmmModal = ({ isBackdrop = false, open, setOpen, title, children, callback = () => {} }) => {
+ const rootRef = useRef(null);
+
const handleClose = () => {
if (callback) callback();
setOpen(false);
@@ -28,26 +34,23 @@ export default function CmmModal({ isBackdrop = false, open, setOpen, title, chi
return (
{/* */}
-
-
-
- {title}
-
+
+
+
+
+ }
+ >
{children}
-
-
-
-
+
);
-}
+};
CmmModal.propTypes = {
isBackdrop: PropTypes.bool,
@@ -57,3 +60,5 @@ CmmModal.propTypes = {
setOpen: PropTypes.func,
callback: PropTypes.func
};
+
+export default CmmModal;
diff --git a/src/views/form/Modal/index.js b/src/views/form/Modal/index.js
index 7fc9504..e4766c5 100644
--- a/src/views/form/Modal/index.js
+++ b/src/views/form/Modal/index.js
@@ -11,7 +11,7 @@ import CmmModal from './CmmModal';
const Modal = () => (
}>
- {/* */}
+
{/* */}
diff --git a/src/views/form/MuiGridPagination.jsx b/src/views/form/MuiDataGrid.jsx
similarity index 96%
rename from src/views/form/MuiGridPagination.jsx
rename to src/views/form/MuiDataGrid.jsx
index bfbd003..a45f040 100644
--- a/src/views/form/MuiGridPagination.jsx
+++ b/src/views/form/MuiDataGrid.jsx
@@ -8,7 +8,7 @@ import { useTheme } from '@mui/material/styles';
import dataGridKoKR from './defaultDataGridLocale';
// project imports
-const MuiGridPagination = ({
+const MuiDataGrid = ({
isCheckbox = false,
isHidePagination = false,
columns,
@@ -66,7 +66,7 @@ const MuiGridPagination = ({
);
};
-MuiGridPagination.propTypes = {
+MuiDataGrid.propTypes = {
isCheckbox: PropTypes.bool,
isHidePagination: PropTypes.bool,
columns: PropTypes.array,
@@ -77,4 +77,4 @@ MuiGridPagination.propTypes = {
handleSelection: PropTypes.func
};
-export default MuiGridPagination;
+export default MuiDataGrid;
diff --git a/src/views/form/MuiDatePicker.jsx b/src/views/form/MuiDatePicker.jsx
new file mode 100644
index 0000000..d292f4c
--- /dev/null
+++ b/src/views/form/MuiDatePicker.jsx
@@ -0,0 +1,65 @@
+// import React from 'react';
+
+import format from 'date-fns/format';
+import koLocale from 'date-fns/locale/ko';
+
+import TextField from '@mui/material/TextField';
+import DateAdapter from '@mui/lab/AdapterDateFns';
+// import DateAdapter from '@mui/lab/AdapterDayjs';
+// import DateAdapter from '@mui/lab/AdapterLuxon';
+// import DateAdapter from '@mui/lab/AdapterMoment';
+import LocalizationProvider from '@mui/lab/LocalizationProvider';
+import { DatePicker, TimePicker, DateTimePicker } from '@mui/lab';
+import NumberFormat from 'react-number-format';
+
+const MuiDateTimePicker = ({ label, date, setDate }) => (
+ //
+ }
+ label={label}
+ value={date}
+ inputFormat="yyyy-MM-dd HH:mm:ss"
+ mask="____-__-__ __:__:__"
+ onChange={(newValue) => {
+ setDate(newValue);
+ }}
+ />
+ //
+);
+
+const MuiDatePicker = ({ label, date, setDate }) => (
+
+ }
+ label={label}
+ value={date}
+ inputFormat="yyyy-MM-dd"
+ mask="____-__-__"
+ onChange={(newValue) => {
+ setDate(newValue);
+ }}
+ />
+
+);
+
+const MuiTimePicker = ({ label, date, setDate }) => (
+
+ }
+ // renderInput={(props) => }
+ label={label}
+ value={date}
+ inputFormat="HH"
+ mask="__"
+ onChange={(newValue) => {
+ setDate(newValue);
+ }}
+ />
+
+);
+
+export { MuiDateTimePicker, MuiDatePicker, MuiTimePicker };