@@ -2,6 +2,7 @@ import React, { Fragment } from 'react'
2
2
import { NavLink , useLocation } from 'react-router-dom'
3
3
import Tippy , { TippyProps } from '@tippyjs/react'
4
4
import { ConditionalWrap } from '@Common/Helper'
5
+ import { Tooltip } from '@Common/Tooltip'
5
6
import { ReactComponent as ICExpand } from '@Icons/ic-expand.svg'
6
7
7
8
import { Collapse } from '../Collapse'
@@ -31,7 +32,9 @@ export const CollapsibleList = ({ config, onCollapseBtnClick }: CollapsibleListP
31
32
className = "icon-dim-20 fcn-6 dc__no-shrink cursor rotate"
32
33
style = { { [ '--rotateBy' as string ] : isExpanded ? '0deg' : '-90deg' } }
33
34
/>
34
- < span className = "flex-grow-1 dc__align-left dc__truncate" > { header } </ span >
35
+ < Tooltip content = { header } placement = "right" >
36
+ < span className = "flex-grow-1 dc__align-left dc__truncate" > { header } </ span >
37
+ </ Tooltip >
35
38
</ button >
36
39
{ headerIconConfig && (
37
40
< ConditionalWrap
@@ -60,7 +63,7 @@ export const CollapsibleList = ({ config, onCollapseBtnClick }: CollapsibleListP
60
63
</ span >
61
64
</ div >
62
65
) : (
63
- items . map ( ( { title, strikeThrough, href, iconConfig, subtitle, onClick } ) => (
66
+ items . map ( ( { title, strikeThrough, href, iconConfig, subtitle, onClick, isActive } ) => (
64
67
< NavLink
65
68
key = { title }
66
69
to = { href }
@@ -72,15 +75,20 @@ export const CollapsibleList = ({ config, onCollapseBtnClick }: CollapsibleListP
72
75
}
73
76
onClick ?.( e )
74
77
} }
78
+ isActive = { isActive }
75
79
>
76
80
< div className = "flexbox-col flex-grow-1 mw-none" >
77
- < span
78
- className = { `collapsible__item__title dc__truncate fs-13 lh-20 ${ strikeThrough ? 'dc__strike-through' : '' } ` }
79
- >
80
- { title }
81
- </ span >
81
+ < Tooltip content = { title } placement = "right" >
82
+ < span
83
+ className = { `collapsible__item__title dc__truncate fs-13 lh-20 ${ strikeThrough ? 'dc__strike-through' : '' } ` }
84
+ >
85
+ { title }
86
+ </ span >
87
+ </ Tooltip >
82
88
{ subtitle && (
83
- < span className = "dc__truncate fw-4 lh-1-5 cn-7" > { subtitle } </ span >
89
+ < Tooltip content = { subtitle } placement = "right" >
90
+ < span className = "dc__truncate fw-4 lh-1-5 cn-7" > { subtitle } </ span >
91
+ </ Tooltip >
84
92
) }
85
93
</ div >
86
94
{ iconConfig && (
0 commit comments