app-next: remove legacy app wrapping

Co-authored-by: Camila Belo <camilaibs@gmail.com>
Co-authored-by: Philipp Hugenroth <philipph@spotify.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-09-08 15:42:13 +02:00
parent f0e3c10f40
commit 3b1d747704
2 changed files with 4 additions and 7 deletions
+2 -4
View File
@@ -14,8 +14,6 @@
* limitations under the License.
*/
import { graphiqlPlugin as legacyGraphiqlPlugin } from '@backstage/plugin-graphiql';
import { createApp as createLegacyApp } from '@backstage/app-defaults';
import { createApp } from '@backstage/frontend-app-api';
import { pagesPlugin } from './examples/pagesPlugin';
import graphiqlPlugin from '@backstage/plugin-graphiql/alpha';
@@ -61,9 +59,9 @@ const app = createApp({
// },
});
const legacyApp = createLegacyApp({ plugins: [legacyGraphiqlPlugin] });
// const legacyApp = createLegacyApp({ plugins: [legacyGraphiqlPlugin] });
export default legacyApp.createRoot(app.createRoot());
export default app.createRoot();
// const routes = (
// <FlatRoutes>
+2 -3
View File
@@ -15,8 +15,7 @@
*/
import '@backstage/cli/asset-types';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import app from './App';
ReactDOM.render(<App />, document.getElementById('root'));
ReactDOM.render(app, document.getElementById('root'));