chore: typescript

This commit is contained in:
hdsuperman
2022-12-22 22:21:55 +08:00
parent 0d616792dc
commit 44e9cc9cd0
3 changed files with 8 additions and 6 deletions
+3 -1
View File
@@ -60,7 +60,9 @@ const NavItem: FC<IProps> = ({ id, setFiles, toggleRemoveConfirm }) => {
navigate(`/setting/channel/${id}?f=${pathname}`);
}
};
const [{ isActive }, drop] = useDrop(() => ({
// todo: type check
const [{ isActive }, drop] = useDrop<any, unknown, { isActive: boolean }>(() => ({
accept: [NativeTypes.FILE],
drop({ dataTransfer }) {
if (dataTransfer.files.length) {