refactor(question-classifier): remove unused willDeleteCaseId state variable

pull/22066/head
Mminamiyama 11 months ago
parent 3e1d5e23df
commit 18793b14a2

@ -1,6 +1,6 @@
'use client' 'use client'
import type { FC } from 'react' import type { FC } from 'react'
import React, { useCallback, useState } from 'react' import React, { useCallback } from 'react'
import produce from 'immer' import produce from 'immer'
import { useTranslation } from 'react-i18next' import { useTranslation } from 'react-i18next'
import { useEdgesInteractions } from '../../../hooks' import { useEdgesInteractions } from '../../../hooks'
@ -61,7 +61,6 @@ const ClassList: FC<Props> = ({
} }
}, [list, onChange, handleEdgeDeleteByDeleteBranch, nodeId]) }, [list, onChange, handleEdgeDeleteByDeleteBranch, nodeId])
const [willDeleteCaseId, setWillDeleteCaseId] = useState('')
const topicCount = list.length const topicCount = list.length
const handleSideWidth = 3 const handleSideWidth = 3
// Todo Remove; edit topic name // Todo Remove; edit topic name
@ -81,7 +80,6 @@ const ClassList: FC<Props> = ({
<div key={item.id} <div key={item.id}
className={cn( className={cn(
'group relative rounded-[10px] bg-components-panel-bg', 'group relative rounded-[10px] bg-components-panel-bg',
willDeleteCaseId === item.id && 'bg-state-destructive-hover',
`-ml-${handleSideWidth} min-h-[40px] px-0 py-0`, `-ml-${handleSideWidth} min-h-[40px] px-0 py-0`,
)}> )}>
<RiDraggable className={cn( <RiDraggable className={cn(

Loading…
Cancel
Save