Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/components/common/FileDropzone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function FileDropzone({
const file = fileList.item(0);
if (!file) return;

if (typeof onFileSelected != 'function') return;
if (typeof onFileSelected !== 'function') return;
onFileSelected(file);

if (inputRef.current) inputRef.current.value = ''; // 같은 파일 다시 선택 가능하게 (선택창 value 초기화)
Expand Down Expand Up @@ -101,7 +101,7 @@ export default function FileDropzone({
const file = e.dataTransfer.files?.item(0);
if (!file) return;

if (typeof onFileSelected != 'function') return;
if (typeof onFileSelected !== 'function') return;
onFileSelected(file);
};

Expand All @@ -126,7 +126,7 @@ export default function FileDropzone({
};

return (
<div className="w-full mt-10">
<div className="mt-10 w-full">
<input
ref={inputRef}
type="file"
Expand Down Expand Up @@ -160,7 +160,7 @@ export default function FileDropzone({
shouldBlurBase && 'blur-sm opacity-40',
)}
>
<div className="flex h-12 w-12 items-center justify-center rounded-full bg-gray-800 not-visited:transition group-hover:bg-gray-900">
<div className="flex h-12 w-12 items-center justify-center rounded-full bg-gray-800 transition group-hover:bg-gray-900">
<UploadIcon className="h-5 w-5 text-white" />
</div>
<div className="space-y-2 text-center">
Expand Down