Skip to content

Commit

Permalink
콘솔, 주석 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
은지 committed Aug 23, 2024
1 parent 71e6eaa commit 1494f47
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/Components/Detail/CompanyDetail/Edit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export function CompanyDetailEdit({
`${process.env.REACT_APP_FILE_URL}${companyDetailInfo?.company_profile_url}` ||
null
);
console.log(companyDetailInfo?.company_profile_url);

const [selectedFile, setSelectedFile] = useState<File | null>(null);

Expand Down Expand Up @@ -116,7 +115,6 @@ export function CompanyDetailEdit({
const handleFileUploadAndEdit = async () => {
if (selectedFile) {
const response = await getPresignedUrl([selectedFile]);
console.log(response);
if (response?.presignedUrls?.urls?.[0]?.file_path) {
const uploadedUrl = `${process.env.REACT_APP_FILE_URL}${response.presignedUrls.urls[0].file_path}`;
setImageUrl(uploadedUrl);
Expand All @@ -132,16 +130,6 @@ export function CompanyDetailEdit({
}
};

// useEffect(() => {
// if (
// companyDetailEditInfo.company_profile_url !==
// companyDetailInfo.company_profile_url
// ) {
// editCompanyInfo();
// }
// // eslint-disable-next-line
// }, [companyDetailEditInfo.company_profile_url]);

const handleFileChange = (event: React.ChangeEvent<HTMLInputElement>) => {
if (event.target.files && event.target.files.length > 0) {
const file = event.target.files[0];
Expand Down

0 comments on commit 1494f47

Please sign in to comment.