diff --git a/packages/core-plugin-api/src/extensions/extensions.tsx b/packages/core-plugin-api/src/extensions/extensions.tsx index 654ec8f710..af883b428e 100644 --- a/packages/core-plugin-api/src/extensions/extensions.tsx +++ b/packages/core-plugin-api/src/extensions/extensions.tsx @@ -236,14 +236,11 @@ export function createReactExtension< | { id?: string } | undefined; - const renderComponent = () => - plugin.getPluginOptions() ? ( - - - - ) : ( + const renderComponent = () => ( + - ); + + ); return ( }> diff --git a/packages/core-plugin-api/src/plugin-options/usePluginOptions.tsx b/packages/core-plugin-api/src/plugin-options/usePluginOptions.tsx index bc1e4d7d3d..629d0d290c 100644 --- a/packages/core-plugin-api/src/plugin-options/usePluginOptions.tsx +++ b/packages/core-plugin-api/src/plugin-options/usePluginOptions.tsx @@ -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. diff --git a/packages/core-plugin-api/src/plugin/types.ts b/packages/core-plugin-api/src/plugin/types.ts index 8b6573c17b..5e5e650a2a 100644 --- a/packages/core-plugin-api/src/plugin/types.ts +++ b/packages/core-plugin-api/src/plugin/types.ts @@ -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, diff --git a/tsconfig.json b/tsconfig.json index 5ad2749f19..789743363d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,6 @@ "compilerOptions": { "outDir": "dist-types", "rootDir": ".", - "useUnknownInCatchVariables": false, - "jsx": "react" + "useUnknownInCatchVariables": false } }