chore: node add memo

This commit is contained in:
Joel
2024-03-05 15:26:28 +08:00
parent 93999cec56
commit eab405af5b
13 changed files with 26 additions and 13 deletions

View File

@ -1,4 +1,5 @@
import { type FC, useEffect, useState } from 'react'
import React from 'react'
import type { KnowledgeRetrievalNodeType } from './types'
import { Folder } from '@/app/components/base/icons/src/vender/solid/files'
import type { NodeProps } from '@/app/components/workflow/types'
@ -38,4 +39,4 @@ const Node: FC<NodeProps<KnowledgeRetrievalNodeType>> = ({
)
}
export default Node
export default React.memo(Node)