fix(ui): repair typescript definitions

pull/5898/head
Pavel Zavora 2022-03-31 14:37:32 +02:00
parent b6374561a8
commit 83cc473d64
1 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
// Libraries
import React, {MouseEvent, PureComponent} from 'react'
import {connect} from 'react-redux'
import {connect, ResolveThunks} from 'react-redux'
// APIs
import {getKapacitors, pingKapacitor} from 'src/shared/apis'
@ -23,13 +23,13 @@ import {Source, Kapacitor, RemoteDataState} from 'src/types'
// Decorators
import {ErrorHandling} from 'src/shared/decorators/errors'
import NoKapacitorError from 'src/shared/components/NoKapacitorError'
interface Props {
interface ReduxDispatchProps {
// connected props
notify: typeof mdtp.notify
setActiveKapacitor: typeof mdtp.setActiveKapacitor
}
// own props
interface OwnProps {
title: string
source: Source
tooltip?: string
@ -40,6 +40,7 @@ interface Props {
) => JSX.Element
}
type Props = OwnProps & ResolveThunks<ReduxDispatchProps>
interface State {
loading: RemoteDataState
scrollTop: number