Skip to content

Commit f19019f

Browse files
authored
Merge pull request #325 from TTORANG/copilot/fix-strict-inequality-operator
fix: FileDropzone 엄격한 동등 연산자 및 Tailwind 클래스 정리
2 parents e185430 + b476bf2 commit f19019f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/common/FileDropzone.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default function FileDropzone({
5656
const file = fileList.item(0);
5757
if (!file) return;
5858

59-
if (typeof onFileSelected != 'function') return;
59+
if (typeof onFileSelected !== 'function') return;
6060
onFileSelected(file);
6161

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

104-
if (typeof onFileSelected != 'function') return;
104+
if (typeof onFileSelected !== 'function') return;
105105
onFileSelected(file);
106106
};
107107

@@ -126,7 +126,7 @@ export default function FileDropzone({
126126
};
127127

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

0 commit comments

Comments
 (0)