user-settings: remove extension data
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { createRouteRef } from '@backstage/core-plugin-api';
|
||||
import {
|
||||
createExtensionDataRef,
|
||||
coreExtensionData,
|
||||
createExtensionInput,
|
||||
createPageExtension,
|
||||
createPlugin,
|
||||
@@ -32,14 +32,6 @@ export const userSettingsRouteRef = createRouteRef({
|
||||
id: 'plugin.user-settings.page',
|
||||
});
|
||||
|
||||
/**
|
||||
* @alpha
|
||||
*/
|
||||
export const userSettingsProviderSettingsExtensionData =
|
||||
createExtensionDataRef<JSX.Element>(
|
||||
'plugin.user-settings.page.providerSettings',
|
||||
);
|
||||
|
||||
/**
|
||||
* @alpha
|
||||
*/
|
||||
@@ -50,14 +42,14 @@ export const UserSettingsPage = createPageExtension({
|
||||
inputs: {
|
||||
providerSettings: createExtensionInput(
|
||||
{
|
||||
component: userSettingsProviderSettingsExtensionData,
|
||||
element: coreExtensionData.reactElement,
|
||||
},
|
||||
{ singleton: true },
|
||||
{ singleton: true, optional: true },
|
||||
),
|
||||
},
|
||||
loader: ({ inputs }) =>
|
||||
import('./components/SettingsPage').then(m => (
|
||||
<m.SettingsPage providerSettings={inputs.providerSettings.component} />
|
||||
<m.SettingsPage providerSettings={inputs.providerSettings?.element} />
|
||||
)),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user