Skip to content

Commit eb7c6ec

Browse files
committed
chore: DeploymentConfigDiffNavigation: Add tooltip for file diff icon
1 parent 29554c3 commit eb7c6ec

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { useEffect, useState } from 'react'
22
import { Link, NavLink } from 'react-router-dom'
3+
import Tippy from '@tippyjs/react'
34

45
import { ReactComponent as ICClose } from '@Icons/ic-close.svg'
56
import { ReactComponent as ICInfoOutlined } from '@Icons/ic-info-outlined.svg'
@@ -41,6 +42,7 @@ export const DeploymentConfigDiffNavigation = ({
4142
iconConfig: {
4243
Icon: ICDiffFileUpdated,
4344
props: { className: 'icon-dim-16 dc__no-shrink' },
45+
tooltipProps: { content: 'File has difference', arrow: false, placement: 'right' as const },
4446
},
4547
}
4648
: {}),
@@ -78,7 +80,13 @@ export const DeploymentConfigDiffNavigation = ({
7880
onClick={onClick}
7981
>
8082
<span className="dc__truncate">{title}</span>
81-
{hasDiff && <ICDiffFileUpdated className="icon-dim-20 dc__no-shrink" />}
83+
{hasDiff && (
84+
<Tippy className="default-tt" content="File has difference" arrow={false} placement="right">
85+
<div className="flex">
86+
<ICDiffFileUpdated className="icon-dim-20 dc__no-shrink" />
87+
</div>
88+
</Tippy>
89+
)}
8290
</NavLink>
8391
))}
8492
<CollapsibleList config={collapsibleListConfig} onCollapseBtnClick={onCollapseBtnClick} />

0 commit comments

Comments
 (0)