chore(ui): improve typescript definitions
parent
78be030f78
commit
3ac79fd22f
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue