Skip to content

Commit

Permalink
Comment: delete unused comment #138
Browse files Browse the repository at this point in the history
  • Loading branch information
seo0o519 committed May 28, 2024
1 parent 8a5d1a7 commit 67c2abb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions src/components/common/ImageUploader.js
Original file line number Diff line number Diff line change
@@ -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);
Expand All @@ -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);
Expand Down
3 changes: 0 additions & 3 deletions src/pages/EditProfilPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ const EditProfilPage = () => {
};

const handleSubmit = (e) => {
//db에 바뀐 이름 post해서 반영
//db에 이미지 formdata로 반영
//변경된 이름은 메인페이지, 작성자, 등에서 모두 바뀌어야 하는데.. 되는 건가? 그렇다!
const formData = new FormData();
formData.append("name", user);
if (selectedFile) {
Expand Down
1 change: 0 additions & 1 deletion src/pages/JoinTripPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ const JoinTripPage = () => {
//success join modal 닫기
const closeSuccessModal = () => {
setIsSuccessModal(false);
// navigate("/triptable", { state:travelId});
};

return (
Expand Down

0 comments on commit 67c2abb

Please sign in to comment.