Dashboard: Fix eslint suppressions in conditional rendering (#113045)
This commit is contained in:
@@ -2062,21 +2062,6 @@
|
||||
"count": 2
|
||||
}
|
||||
},
|
||||
"public/app/features/dashboard-scene/conditional-rendering/conditions/ConditionalRenderingData.tsx": {
|
||||
"react-prefer-function-component/react-prefer-function-component": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"public/app/features/dashboard-scene/conditional-rendering/conditions/ConditionalRenderingTimeRangeSize.tsx": {
|
||||
"react-prefer-function-component/react-prefer-function-component": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"public/app/features/dashboard-scene/conditional-rendering/conditions/ConditionalRenderingVariable.tsx": {
|
||||
"react-prefer-function-component/react-prefer-function-component": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"public/app/features/dashboard-scene/edit-pane/DashboardEditPaneRenderer.tsx": {
|
||||
"@typescript-eslint/consistent-type-assertions": {
|
||||
"count": 1
|
||||
|
||||
+1
-1
@@ -133,7 +133,7 @@ export class ConditionalRenderingData extends SceneObjectBase<ConditionalRenderi
|
||||
}
|
||||
}
|
||||
|
||||
public render(): ReactElement {
|
||||
public renderCmp(): ReactElement {
|
||||
return <this.Component model={this} key={this.state.key} />;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -80,7 +80,7 @@ export class ConditionalRenderingTimeRangeSize extends SceneObjectBase<Condition
|
||||
}
|
||||
}
|
||||
|
||||
public render(): ReactElement {
|
||||
public renderCmp(): ReactElement {
|
||||
return <this.Component model={this} key={this.state.key} />;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -127,7 +127,7 @@ export class ConditionalRenderingVariable extends SceneObjectBase<ConditionalRen
|
||||
}
|
||||
}
|
||||
|
||||
public render(): ReactElement {
|
||||
public renderCmp(): ReactElement {
|
||||
return <this.Component model={this} key={this.state.key} />;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -218,7 +218,7 @@ function ConditionalRenderingGroupRenderer({ model }: SceneComponentProps<Condit
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
{conditions.map((currentCondition) => currentCondition.render())}
|
||||
{conditions.map((currentCondition) => currentCondition.renderCmp())}
|
||||
<ConditionalRenderingGroupAdd
|
||||
objectType={objectType}
|
||||
hasVariables={variables.length > 0}
|
||||
|
||||
Reference in New Issue
Block a user