Merge pull request #30703 from backstage/rugvip/element
frontend-plugin-api: AppRootElementBlueprint now only accepts an element
This commit is contained in:
@@ -812,7 +812,7 @@ const appPlugin: FrontendPlugin<
|
||||
kind: 'app-root-element';
|
||||
name: 'alert-display';
|
||||
params: {
|
||||
element: JSX.Element | (() => JSX.Element);
|
||||
element: JSX.Element;
|
||||
};
|
||||
}>;
|
||||
'app-root-element:app/dialog-display': ExtensionDefinition<{
|
||||
@@ -835,7 +835,7 @@ const appPlugin: FrontendPlugin<
|
||||
kind: 'app-root-element';
|
||||
name: 'dialog-display';
|
||||
params: {
|
||||
element: JSX.Element | (() => JSX.Element);
|
||||
element: JSX.Element;
|
||||
};
|
||||
}>;
|
||||
'app-root-element:app/oauth-request-dialog': ExtensionDefinition<{
|
||||
@@ -850,7 +850,7 @@ const appPlugin: FrontendPlugin<
|
||||
>;
|
||||
inputs: {};
|
||||
params: {
|
||||
element: JSX.Element | (() => JSX.Element);
|
||||
element: JSX.Element;
|
||||
};
|
||||
}>;
|
||||
'sign-in-page:app': ExtensionDefinition<{
|
||||
|
||||
@@ -41,7 +41,7 @@ export const alertDisplayAppRootElement =
|
||||
},
|
||||
factory: (originalFactory, { config }) => {
|
||||
return originalFactory({
|
||||
element: () => <AlertDisplay {...config} />,
|
||||
element: <AlertDisplay {...config} />,
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user