Skip to content

Commit

Permalink
feat: 서버에서 이미지 업로드 구현시까지, 관련 코드 주석 처리 및 사용자에게 메시지 알림
Browse files Browse the repository at this point in the history
  • Loading branch information
presentKey committed Jan 13, 2024
1 parent 5beb130 commit 3c7adb7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/features/users/api/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,12 @@ export default class ProfileApi {
data.append(key, value);
}

if (backgroundImage) data.append("backgroundImage", backgroundImage);
if (thumbnailImage) data.append("thumbnail", thumbnailImage);
//TODO: 서버에서 이미지 업로드 구현 시, 주석 해제
if (backgroundImage && thumbnailImage) {
console.log("");
}
// if (backgroundImage) data.append("backgroundImage", backgroundImage);
// if (thumbnailImage) data.append("thumbnail", thumbnailImage);

return await patch("/members", form);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ export const CropperContainer = styled.div`
export const RangeInput = styled.input`
margin: 16px 0 4px;
`;

export const Information = styled.span`
${({ theme }) => theme.typo["body-2-r"]}
color: ${({ theme }) => theme.colors.warn[60]};
`;
2 changes: 2 additions & 0 deletions src/features/users/routes/Edit/EditForm/ImageCropModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { dataURLtoFile, getCroppedImg } from "@/libs/imageCrop";
import {
ContentContainer,
CropperContainer,
Information,
RangeInput,
} from "./ImageCropModal.style";

Expand Down Expand Up @@ -83,6 +84,7 @@ export default function ImageCropModal({
setZoom(Number(e.target.value))
}
/>
<Information>이미지 저장은 아직 지원되지 않습니다.</Information>
</ContentContainer>
</Modal.Content>
<Modal.Actions>
Expand Down

0 comments on commit 3c7adb7

Please sign in to comment.