Merge pull request #6124 from backstage/rugvip/noroutes

plugins,dev-utils: remove usage of deprecated route registrations
This commit is contained in:
Patrik Oldsberg
2021-06-21 23:39:33 +02:00
committed by GitHub
14 changed files with 89 additions and 134 deletions
+9 -2
View File
@@ -14,7 +14,14 @@
* limitations under the License.
*/
import React from 'react';
import { createDevApp } from '@backstage/dev-utils';
import { gcpProjectsPlugin } from '../src/plugin';
import { gcpProjectsPlugin, GcpProjectsPage } from '../src/plugin';
createDevApp().registerPlugin(gcpProjectsPlugin).render();
createDevApp()
.registerPlugin(gcpProjectsPlugin)
.addPage({
title: 'GCP Projects',
element: <GcpProjectsPage />,
})
.render();