Skip to content

Commit

Permalink
🔥 사용하지 않는 주석 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
Yena-Yun committed May 14, 2022
1 parent e37e5ab commit 060e551
Show file tree
Hide file tree
Showing 4 changed files with 237 additions and 61 deletions.
6 changes: 3 additions & 3 deletions components/Upload/Register/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ const Register = () => {
const inputOpenImageRef = useRef(null);

const handleChangeFile = (e) => {
const reader = new FileReader();

const file = e.target.files[0];
reader.readAsDataURL(file);

// 로컬에 미리보기 렌더링
const reader = new FileReader();
reader.readAsDataURL(file);
reader.onload = (e) => {
setImgFile(e.target.result);
};
Expand Down
6 changes: 0 additions & 6 deletions components/common/ImageUploadWrapper/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { useEffect } from 'react';
import * as S from './ImageUploadWrapper.style';
import useImageHandle from 'hooks/useImageHandle';

Expand All @@ -10,11 +9,6 @@ export interface ImageUploadPropsType {
const ImageUploadWrapper = ({ children, name }: ImageUploadPropsType) => {
const { storeImage } = useImageHandle(name);

useEffect(() => {
console.log(name);
console.log(storeImage);
}, [name]);

return (
<>
<S.ProfileLabel htmlFor="file-input">{children}</S.ProfileLabel>
Expand Down
Loading

0 comments on commit 060e551

Please sign in to comment.