File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
redisinsight/ui/src/components/formated-date Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
2
import { useSelector } from 'react-redux'
3
+ import { EuiToolTip } from '@elastic/eui'
3
4
import { DATETIME_FORMATTER_DEFAULT , TimezoneOption } from 'uiSrc/constants'
4
5
import { userSettingsConfigSelector } from 'uiSrc/slices/user/user-settings'
5
6
import { formatTimestamp } from 'uiSrc/utils'
@@ -17,9 +18,14 @@ const FormatedDate = ({ date }: Props) => {
17
18
const formatedDate = formatTimestamp ( date , dateFormat , timezone )
18
19
19
20
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 >
23
29
)
24
30
}
25
31
You can’t perform that action at this time.
0 commit comments