diff --git a/src/components/common/ImageUploader.js b/src/components/common/ImageUploader.js index 707bf68..d51b2ee 100644 --- a/src/components/common/ImageUploader.js +++ b/src/components/common/ImageUploader.js @@ -1,7 +1,6 @@ import React, {useState ,useRef} from "react"; import PropTypes from "prop-types"; import { AiFillCamera } from "react-icons/ai"; -// import axios from "axios"; const ImageUploader = ({onChange, url}) => { const [selectedFile, setSelectedFile] = useState(null); @@ -14,8 +13,6 @@ const ImageUploader = ({onChange, url}) => { const file = e.target.files[0]; setSelectedFile(file); if(file){ - // const img = new FormData(); - // img.append("file", file); const reader = new FileReader(); reader.onload = () => { setPreviewUrl(reader.result); diff --git a/src/pages/EditProfilPage.js b/src/pages/EditProfilPage.js index 3635c03..83d0db3 100644 --- a/src/pages/EditProfilPage.js +++ b/src/pages/EditProfilPage.js @@ -31,9 +31,6 @@ const EditProfilPage = () => { }; const handleSubmit = (e) => { - //db에 바뀐 이름 post해서 반영 - //db에 이미지 formdata로 반영 - //변경된 이름은 메인페이지, 작성자, 등에서 모두 바뀌어야 하는데.. 되는 건가? 그렇다! const formData = new FormData(); formData.append("name", user); if (selectedFile) { diff --git a/src/pages/JoinTripPage.js b/src/pages/JoinTripPage.js index 63e2e1a..b6486c1 100644 --- a/src/pages/JoinTripPage.js +++ b/src/pages/JoinTripPage.js @@ -101,7 +101,6 @@ const JoinTripPage = () => { //success join modal 닫기 const closeSuccessModal = () => { setIsSuccessModal(false); - // navigate("/triptable", { state:travelId}); }; return (