diff --git a/pkg/plugin/examples/react-component/src/testReact.tsx b/pkg/plugin/examples/react-component/src/testReact.tsx index c29f9c3dd16..70aba653980 100644 --- a/pkg/plugin/examples/react-component/src/testReact.tsx +++ b/pkg/plugin/examples/react-component/src/testReact.tsx @@ -145,11 +145,16 @@ interface IPluginApi { }); const TestPage: React.FC = () => { - const componentsLoading = PluginApi.hooks.useLoadComponents([PluginApi.loadableComponents.SceneCard]); + const componentsToLoad = [ + PluginApi.loadableComponents.SceneCard, + PluginApi.loadableComponents.PerformerSelect, + ]; + const componentsLoading = PluginApi.hooks.useLoadComponents(componentsToLoad); const { SceneCard, LoadingIndicator, + PerformerSelect, } = PluginApi.components; // read a random scene and show a scene card for it @@ -172,6 +177,9 @@ interface IPluginApi {
This is a test page.
{!!scene && } +
+ {}} values={[]} /> +
); }; diff --git a/ui/v2.5/src/pluginApi.tsx b/ui/v2.5/src/pluginApi.tsx index ac8fcf840ec..ddb5f487133 100644 --- a/ui/v2.5/src/pluginApi.tsx +++ b/ui/v2.5/src/pluginApi.tsx @@ -83,6 +83,7 @@ export const PluginApi = { loadableComponents: { // add components as needed for plugins that provide pages SceneCard: () => import("./components/Scenes/SceneCard"), + PerformerSelect: () => import("./components/Performers/PerformerSelect"), }, components, utils: {