chore(ui): improve typescript definitions

pull/5898/head
Pavel Zavora 2022-03-26 05:25:25 +01:00
parent 78be030f78
commit 3ac79fd22f
2 changed files with 5 additions and 5 deletions

View File

@ -38,7 +38,7 @@ interface Props {
setError: (b: boolean) => void
sources: Source[]
onBoarding?: boolean
kapacitor: Kapacitor
kapacitor?: Kapacitor
deleteKapacitor: sourcesActions.DeleteKapacitor
setActiveKapacitor: sourcesActions.SetActiveKapacitor
fetchKapacitors: sourcesActions.FetchKapacitorsAsync

View File

@ -98,7 +98,7 @@ class OnboardingWizard extends PureComponent<Props, State> {
<SourceStep
ref={c => (this.sourceStepRef = c)}
setError={this.handleSetSourceError}
source={source}
source={source as Source}
onBoarding={true}
me={me}
isUsingAuth={isUsingAuth}
@ -114,7 +114,7 @@ class OnboardingWizard extends PureComponent<Props, State> {
previousLabel="Go Back"
>
<DashboardStep
source={source}
source={source as Source}
countSelected={this.countSelected}
dashboardsCreated={dashboardsCreated}
ref={c => (this.dashboardStepRef = c)}
@ -131,9 +131,9 @@ class OnboardingWizard extends PureComponent<Props, State> {
previousLabel="Go Back"
>
<KapacitorStep
ref={c => (this.kapacitorStepRef = c)}
ref={(c: any) => (this.kapacitorStepRef = c)}
setError={this.handleSetKapacitorError}
source={source}
source={source as Source}
onBoarding={true}
/>
</WizardStep>