Skip to content

Commit

Permalink
Add PerformerSelect to example plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
WithoutPants committed Dec 3, 2024
1 parent da0ef1b commit f329835
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkg/plugin/examples/react-component/src/testReact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -172,6 +177,9 @@ interface IPluginApi {
<div>
<div>This is a test page.</div>
{!!scene && <SceneCard scene={data.findScenes.scenes[0]} />}
<div>
<PerformerSelect isMulti onSelect={() => {}} values={[]} />
</div>
</div>
);
};
Expand Down

0 comments on commit f329835

Please sign in to comment.