diff --git a/src/components/Node.tsx b/src/components/Node.tsx index ce178ed..b0d1187 100644 --- a/src/components/Node.tsx +++ b/src/components/Node.tsx @@ -77,11 +77,12 @@ const NodeItemIcon = React.memo(function NodeItemIcon({ val: { icons }, } = useConfigs() - if (icons === 'native') return const src = React.useMemo( () => (node.type === 'tree' ? getFolderIconSrc(node, open) : getFileIconSrc(node)), [open], ) + + if (icons === 'native') return return ( <>