mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: consistent revoke hook time
This commit is contained in:
parent
99733e78ad
commit
6b4e961afe
1 changed files with 2 additions and 1 deletions
|
|
@ -77,11 +77,12 @@ const NodeItemIcon = React.memo(function NodeItemIcon({
|
|||
val: { icons },
|
||||
} = useConfigs()
|
||||
|
||||
if (icons === 'native') return <Icon type={getIconType(node)} />
|
||||
const src = React.useMemo(
|
||||
() => (node.type === 'tree' ? getFolderIconSrc(node, open) : getFileIconSrc(node)),
|
||||
[open],
|
||||
)
|
||||
|
||||
if (icons === 'native') return <Icon type={getIconType(node)} />
|
||||
return (
|
||||
<>
|
||||
<Icon placeholder={node.type !== 'tree'} type={getIconType(node)} />
|
||||
|
|
|
|||
Loading…
Reference in a new issue