frontend-plugin-api: AppRootElementBlueprint now only accepts an element
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -816,7 +816,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<{
|
||||
@@ -839,7 +839,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<{
|
||||
@@ -854,7 +854,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