MCPcopy Create free account
hub / github.com/DTStack/dt-react-component / handleItemClick

Function handleItemClick

src/chat/conversations/index.tsx:37–40  ·  view source on GitHub ↗
(info: ConversationInfo)

Source from the content-addressed store, hash-verified

35 const locale = useLocale('Chat');
36
37 const handleItemClick = (info: ConversationInfo) => {
38 setValue(info.id);
39 onItemClick?.(info);
40 };
41
42 useEffect(() => {
43 if (activeKey !== value) {

Callers

nothing calls this directly

Calls 1

setValueFunction · 0.85

Tested by

no test coverage detected