diff --git a/src/views/biz/resident/Review.jsx b/src/views/biz/resident/Review.jsx index b0ab60b..df6b596 100644 --- a/src/views/biz/resident/Review.jsx +++ b/src/views/biz/resident/Review.jsx @@ -7,8 +7,8 @@ import MainCard from 'ui-component/cards/MainCard'; // project imports import MuiDataGrid from 'views/form/MuiDataGrid'; -import CmmModal from '../../form/Modal/CmmModal'; -import { getResidents, saveResidentData } from '../../../apis/resident'; +import CmmModal from 'views/form/Modal/CmmModal'; +import { getResidents, saveResidentData } from 'apis/resident'; import SaveResidentDataForm from './SaveResidentDataForm'; const ResidentDataReview = () => { @@ -71,9 +71,8 @@ const ResidentDataReview = () => { const handleSaveResident = (payload) => { saveResidentData(payload).then(() => { - // savePublicBoard(payload).then(() => { - // search(); - // setOpen(false); + search(); + setOpen(false); }); }; diff --git a/src/views/biz/resident/SaveResidentDataForm.jsx b/src/views/biz/resident/SaveResidentDataForm.jsx index f888e9f..0029397 100644 --- a/src/views/biz/resident/SaveResidentDataForm.jsx +++ b/src/views/biz/resident/SaveResidentDataForm.jsx @@ -4,18 +4,13 @@ import PropTypes from 'prop-types'; import NumberFormat from 'react-number-format'; import { useAlert } from 'react-alert'; import format from 'date-fns/format'; -import getHours from 'date-fns/getHours'; -import koLocale from 'date-fns/locale/ko'; import { Grid, TextField, MenuItem, Select, FormControl, InputLabel, InputAdornment } from '@mui/material'; import Button from '@mui/material/Button'; -import { IconFileExport, IconSearch } from '@tabler/icons'; +import { IconSearch } from '@tabler/icons'; import { getComboCodeList } from 'apis/common'; import FileInputForms from 'views/form/FileInputForms'; -import DateAdapter from '@mui/lab/AdapterDateFns'; -import { DatePicker } from '@mui/lab'; -import LocalizationProvider from '@mui/lab/LocalizationProvider'; const toDate = new Date();