Add scenes tab to performer page (#280)

This commit is contained in:
Infinite
2020-01-23 14:12:03 +01:00
parent dcfd445040
commit 63cc97d199
9 changed files with 720 additions and 368 deletions

View File

@@ -14,7 +14,12 @@ import { SceneCard } from "./SceneCard";
import { SceneListTable } from "./SceneListTable";
import { SceneSelectedOptions } from "./SceneSelectedOptions";
export const SceneList: React.FC = () => {
interface ISceneList {
subComponent?: boolean;
filterHook?: (filter: ListFilterModel) => ListFilterModel;
}
export const SceneList: React.FC<ISceneList> = ({ subComponent, filterHook }) => {
const history = useHistory();
const otherOperations = [
{
@@ -27,7 +32,9 @@ export const SceneList: React.FC = () => {
zoomable: true,
otherOperations,
renderContent,
renderSelectedOptions
renderSelectedOptions,
subComponent,
filterHook
});
async function playRandom(