Incorporated the feedback
Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
This commit is contained in:
@@ -236,14 +236,11 @@ export function createReactExtension<
|
||||
| { id?: string }
|
||||
| undefined;
|
||||
|
||||
const renderComponent = () =>
|
||||
plugin.getPluginOptions() ? (
|
||||
<PluginOptionsProvider pluginOptions={plugin.getPluginOptions()}>
|
||||
<Component {...props} />
|
||||
</PluginOptionsProvider>
|
||||
) : (
|
||||
const renderComponent = () => (
|
||||
<PluginOptionsProvider pluginOptions={plugin.getPluginOptions()}>
|
||||
<Component {...props} />
|
||||
);
|
||||
</PluginOptionsProvider>
|
||||
);
|
||||
|
||||
return (
|
||||
<Suspense fallback={<Progress />}>
|
||||
|
||||
@@ -22,7 +22,7 @@ import {
|
||||
import { AnyPluginOptions } from '../plugin';
|
||||
import React, { ReactNode } from 'react';
|
||||
|
||||
const contextKey: string = 'pluginOptions-context';
|
||||
const contextKey: string = 'plugin-options-context';
|
||||
|
||||
/**
|
||||
* Properties for the AsyncEntityProvider component.
|
||||
|
||||
@@ -49,7 +49,7 @@ export type AnyExternalRoutes = { [name: string]: ExternalRouteRef };
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export type AnyPluginOptions = { [name: string]: any };
|
||||
export type AnyPluginOptions = { [name: string]: unknown };
|
||||
|
||||
export type ReconfigureFunction = (
|
||||
options: AnyPluginOptions,
|
||||
|
||||
+1
-2
@@ -9,7 +9,6 @@
|
||||
"compilerOptions": {
|
||||
"outDir": "dist-types",
|
||||
"rootDir": ".",
|
||||
"useUnknownInCatchVariables": false,
|
||||
"jsx": "react"
|
||||
"useUnknownInCatchVariables": false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user