fix: mark modal cannot select folder (#327)

This commit is contained in:
Archer
2023-09-20 11:26:17 +08:00
committed by GitHub
parent 858117f8c0
commit 63b183a9fe
7 changed files with 323 additions and 279 deletions

View File

@@ -101,7 +101,7 @@ const MyIcon = ({ name, w = 'auto', h = 'auto', ...props }: { name: IconName } &
.catch((error) => console.log(error));
}, [name]);
return name ? (
return !!name && !!iconPaths[name] ? (
<Icon
{...IconComponent}
w={w}