fix: 콘텐츠 타입과 드롭 파일 타입 추론 오류 수정
This commit is contained in:
1 parent
c06018d88c
commit
c659f8c2f9
2 files changed
+2
-2
No files matched your search
@@ -31,7 +31,7 @@ const ContentCardSocialActions: React.FC<ContentCardSocialActionsProps> = ({
|
|||||||
commentCount,
|
commentCount,
|
||||||
initialLikeCount,
|
initialLikeCount,
|
||||||
initialIsLiked = false,
|
initialIsLiked = false,
|
||||||
}) => {
|
}: ContentCardSocialActionsProps) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
const [likeCount, setLikeCount] = useState(initialLikeCount);
|
const [likeCount, setLikeCount] = useState(initialLikeCount);
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ const AssetManagementContent: React.FC<AssetManagementContentProps> = ({
|
|||||||
const handleDrop = (e: React.DragEvent) => {
|
const handleDrop = (e: React.DragEvent) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
const files = Array.from(e.dataTransfer.files).filter(isImageInputFile);
|
const files = Array.from<File>(e.dataTransfer.files).filter(isImageInputFile);
|
||||||
if (files.length > 0) void runAddImages(files);
|
if (files.length > 0) void runAddImages(files);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user