fix: type 오류 fix

main
minuk926 3 years ago
parent e7e7957507
commit 42c2c8cedb

@ -0,0 +1,25 @@
FROM nginx
# root 에 app 폴더를 생성
RUN mkdir /app
# work dir 고정
WORKDIR /app
# work dir 에 build 폴더 생성 /app/build
RUN mkdir ./build
# host pc의 현재경로의 build 폴더를 workdir 의 build 폴더로 복사
ADD ./build ./build
# nginx 의 default.conf backup
RUN mv /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf.backup
# host pc 의 nginx.conf 를 아래 경로에 복사
COPY ./nginx.conf /etc/nginx/conf.d
# 80 포트 오픈
EXPOSE 80
# container 실행 시 nginx 시작함
CMD ["nginx", "-g", "daemon off;"]

@ -0,0 +1,10 @@
#nginx.config
server {
listen 80;
location / {
root /app/build;
index index.html;
try_files $uri $uri/ /index.html;
}
}

@ -15,8 +15,6 @@ import PropTypes from 'prop-types';
const ModifyBoardForm = (props) => { const ModifyBoardForm = (props) => {
// eslint-disable-next-line react/prop-types // eslint-disable-next-line react/prop-types
const { setOpen, handleModalSave, rowData = {}, owner = false, handleNewBoard } = props; const { setOpen, handleModalSave, rowData = {}, owner = false, handleNewBoard } = props;
console.log(`~~~~~~${owner}`);
const alert = useAlert();
const quillRef = useRef(); const quillRef = useRef();
const [subject, setSubject] = useState(rowData.ciTitle); const [subject, setSubject] = useState(rowData.ciTitle);
const [contents, setContents] = useState(rowData.ciContents); const [contents, setContents] = useState(rowData.ciContents);

@ -17,7 +17,6 @@ import PropTypes from 'prop-types';
const BoardForm = (props) => { const BoardForm = (props) => {
// eslint-disable-next-line react/prop-types // eslint-disable-next-line react/prop-types
const { setOpen, handleModalSave, rowData = {} } = props; const { setOpen, handleModalSave, rowData = {} } = props;
const alert = useAlert();
const quillRef = useRef(); const quillRef = useRef();
const [subject, setSubject] = useState(''); const [subject, setSubject] = useState('');
const [contents, setContents] = useState(''); const [contents, setContents] = useState('');

@ -14,7 +14,7 @@ import FileReadInputForm from '../../cmm/file-ctl/FileReadInputForm';
// const toDate = new Date(); // const toDate = new Date();
function FileReadInputForms(props) { function FileReadInputForms() {
return null; return null;
} }
@ -77,7 +77,7 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav
formData.append('contadFiles', v); formData.append('contadFiles', v);
}); });
console.log(picads, frecads, contads); console.log(picads, frecads, contads);
// handleModalSave(formData); handleModalSave(formData);
}; };
const handleChangeFile = (e) => { const handleChangeFile = (e) => {

Loading…
Cancel
Save