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 setError: (b: boolean) => void
sources: Source[] sources: Source[]
onBoarding?: boolean onBoarding?: boolean
kapacitor: Kapacitor kapacitor?: Kapacitor
deleteKapacitor: sourcesActions.DeleteKapacitor deleteKapacitor: sourcesActions.DeleteKapacitor
setActiveKapacitor: sourcesActions.SetActiveKapacitor setActiveKapacitor: sourcesActions.SetActiveKapacitor
fetchKapacitors: sourcesActions.FetchKapacitorsAsync fetchKapacitors: sourcesActions.FetchKapacitorsAsync

View File

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