graphiql: migrate to use plugin-api

Co-authored-by: Juan Lulkin <jmaiz@spotify.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-03-10 11:08:17 +01:00
parent 7803503b1e
commit 97b59b5821
7 changed files with 11 additions and 18 deletions
+3 -1
View File
@@ -16,7 +16,8 @@
import React from 'react';
import { createDevApp } from '@backstage/dev-utils';
import { githubAuthApiRef, errorApiRef } from '@backstage/core';
import { githubAuthApiRef, errorApiRef } from '@backstage/plugin-api';
import GraphiQLIcon from '../src/assets/graphiql.icon.svg';
import {
graphiqlPlugin,
GraphQLEndpoints,
@@ -55,6 +56,7 @@ createDevApp()
})
.addPage({
title: 'GraphiQL',
icon: GraphiQLIcon,
element: <GraphiQLPage />,
})
.render();