A bit changed the structure

Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
This commit is contained in:
bnechyporenko
2022-05-20 20:26:48 +02:00
parent 08d2b2a031
commit 71f5f4c559
5 changed files with 22 additions and 23 deletions
+6 -4
View File
@@ -97,6 +97,7 @@ import * as plugins from './plugins';
import { techDocsPage } from './components/techdocs/TechDocsPage';
import { ApacheAirflowPage } from '@backstage/plugin-apache-airflow';
import { PermissionedRoute } from '@backstage/plugin-permission-react';
import { AnyPluginOptions } from '@backstage/core-plugin-api';
import { catalogEntityCreatePermission } from '@backstage/plugin-catalog-common';
const app = createApp({
@@ -138,10 +139,11 @@ const app = createApp({
const AppProvider = app.getProvider();
const AppRouter = app.getRouter();
catalogPlugin.reconfigure({
// TODO: remove it, only for testing here
createButtonTitle: 'Maybe Create Component',
});
// TODO: remove it, only for testing here
catalogPlugin.reconfigure((options: AnyPluginOptions) => ({
...options,
createButtonTitle: 'Maybe Create',
}));
const routes = (
<FlatRoutes>