feat/TanStack-Form (#18346)
This commit is contained in:
parent
efe5db38ee
commit
1e7418095f
38 changed files with 959 additions and 127 deletions
|
|
@ -106,13 +106,11 @@ const SegmentCard: FC<ISegmentCardProps> = ({
|
|||
const wordCountText = useMemo(() => {
|
||||
const total = formatNumber(word_count)
|
||||
return `${total} ${t('datasetDocuments.segment.characters', { count: word_count })}`
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [word_count])
|
||||
}, [word_count, t])
|
||||
|
||||
const labelPrefix = useMemo(() => {
|
||||
return isParentChildMode ? t('datasetDocuments.segment.parentChunk') : t('datasetDocuments.segment.chunk')
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [isParentChildMode])
|
||||
}, [isParentChildMode, t])
|
||||
|
||||
if (loading)
|
||||
return <ParentChunkCardSkeleton />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue