From 83cc473d64061ea96338675e1dcb0ac4db17590a Mon Sep 17 00:00:00 2001 From: Pavel Zavora Date: Thu, 31 Mar 2022 14:37:32 +0200 Subject: [PATCH] fix(ui): repair typescript definitions --- ui/src/kapacitor/containers/KapacitorScopedPage.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ui/src/kapacitor/containers/KapacitorScopedPage.tsx b/ui/src/kapacitor/containers/KapacitorScopedPage.tsx index 8389aa251..d3449349b 100644 --- a/ui/src/kapacitor/containers/KapacitorScopedPage.tsx +++ b/ui/src/kapacitor/containers/KapacitorScopedPage.tsx @@ -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 interface State { loading: RemoteDataState scrollTop: number