@@ -14,7 +14,7 @@ import cx from 'classnames'
14
14
import { FormikProps } from 'formik'
15
15
16
16
import { useDispatch } from 'react-redux'
17
- import { validateCertName , validateField } from 'uiSrc/utils'
17
+ import { validateCertName , validateField , Nullable , truncateText } from 'uiSrc/utils'
18
18
import PopoverDelete from 'uiSrc/pages/browser/components/popover-delete/PopoverDelete'
19
19
20
20
import {
@@ -40,7 +40,7 @@ export interface Props {
40
40
const TlsDetails = ( props : Props ) => {
41
41
const dispatch = useDispatch ( )
42
42
const { flexGroupClassName = '' , flexItemClassName = '' , formik, caCertificates, certificates } = props
43
- const [ activeCertId , setActiveCertId ] = useState < string | null > ( null )
43
+ const [ activeCertId , setActiveCertId ] = useState < Nullable < string > > ( null )
44
44
45
45
const handleDeleteCaCert = ( id : string ) => {
46
46
dispatch ( deleteCaCertificateAction ( id , handleClickDeleteCert ) )
@@ -50,12 +50,11 @@ const TlsDetails = (props: Props) => {
50
50
dispatch ( deleteClientCertAction ( id , handleClickDeleteCert ) )
51
51
}
52
52
53
- const handleClickDeleteCert = ( id : string ) => {
53
+ const handleClickDeleteCert = ( ) => {
54
54
sendEventTelemetry ( {
55
55
event : TelemetryEvent . CONFIG_DATABASES_CERTIFICATE_REMOVED ,
56
56
eventData : { } ,
57
57
} )
58
- showPopover ( id )
59
58
}
60
59
61
60
const closePopover = ( ) => {
0 commit comments