graphiql,ilert: narrow icon component type

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-06-19 15:15:33 +02:00
parent 48c9fcd33c
commit e6e36cfc3a
3 changed files with 8 additions and 4 deletions
+6 -2
View File
@@ -16,7 +16,11 @@
import React from 'react';
import { createDevApp } from '@backstage/dev-utils';
import { githubAuthApiRef, errorApiRef } from '@backstage/core-plugin-api';
import {
githubAuthApiRef,
errorApiRef,
IconComponent,
} from '@backstage/core-plugin-api';
import GraphiQLIcon from '../src/assets/graphiql.icon.svg';
import {
graphiqlPlugin,
@@ -56,7 +60,7 @@ createDevApp()
})
.addPage({
title: 'GraphiQL',
icon: GraphiQLIcon,
icon: GraphiQLIcon as IconComponent,
element: <GraphiQLPage />,
})
.render();
+1 -1
View File
@@ -25,4 +25,4 @@ export {
export { GraphiQLPage as Router } from './components';
export * from './lib/api';
export * from './route-refs';
export const GraphiQLIcon: IconComponent = GraphiQLIconComponent;
export const GraphiQLIcon: IconComponent = GraphiQLIconComponent as IconComponent;
+1 -1
View File
@@ -30,4 +30,4 @@ export {
} from './components';
export * from './api';
export * from './route-refs';
export const ILertIcon: IconComponent = ILertIconComponent;
export const ILertIcon: IconComponent = ILertIconComponent as IconComponent;