Skip to content

Commit 1fdf29a

Browse files
committed
RI-5934 added tooltip for formatted Date
1 parent 1a26aae commit 1fdf29a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

redisinsight/ui/src/components/formated-date/FormatedDate.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react'
22
import { useSelector } from 'react-redux'
3+
import { EuiToolTip } from '@elastic/eui'
34
import { DATETIME_FORMATTER_DEFAULT, TimezoneOption } from 'uiSrc/constants'
45
import { userSettingsConfigSelector } from 'uiSrc/slices/user/user-settings'
56
import { formatTimestamp } from 'uiSrc/utils'
@@ -17,9 +18,14 @@ const FormatedDate = ({ date }: Props) => {
1718
const formatedDate = formatTimestamp(date, dateFormat, timezone)
1819

1920
return (
20-
<span className={styles.text}>
21-
{formatedDate}
22-
</span>
21+
<EuiToolTip
22+
anchorClassName={styles.text}
23+
content={formatedDate}
24+
>
25+
<span>
26+
{formatedDate}
27+
</span>
28+
</EuiToolTip>
2329
)
2430
}
2531

0 commit comments

Comments
 (0)