ISSUE-032 - Found a fix to the Hooks rendering error by using ReactRouter.
This commit is contained in:
1 parent
e676c7a95a
commit
f9f7b739ee
8 files changed
+38
-42
No files matched your search
@@ -1,12 +1,5 @@
|
||||
import { ReactNode } from "react";
|
||||
import { WorkspaceId, WorkspaceProperties } from "../../types/state";
|
||||
|
||||
// Broadcast Graphics
|
||||
import { ChyronDriver } from "../../components/BroadcastGraphics/Chyrons/Driver";
|
||||
import { ChyronPrototypeControls } from "../../components/Workspaces/PrototypingControls/ChyronPrototype";
|
||||
import { AngledFlagWorkSpace } from "../../components/Workspaces/CustomWorkSpaces/AngledFlagWorkSpace";
|
||||
import { AngledFlagPrototypeControls } from "../../components/Workspaces/PrototypingControls/AngledFlagPrototype";
|
||||
|
||||
type WorkspaceObject = {
|
||||
[id: WorkspaceId]: WorkspaceProperties,
|
||||
};
|
||||
@@ -44,24 +37,4 @@ export const workspaces: WorkspaceObject = {
|
||||
height: 500,
|
||||
},
|
||||
},
|
||||
foo: {
|
||||
name: "Foo",
|
||||
overlayIds: [],
|
||||
previewWindowDimensions: { width: 500, height: 500 },
|
||||
},
|
||||
};
|
||||
|
||||
export function fetchBroadcastGraphic(workspaceId?: WorkspaceId): [ReactNode, ReactNode] {
|
||||
switch(workspaceId) {
|
||||
case "chyronDriver": return [
|
||||
ChyronDriver(),
|
||||
ChyronPrototypeControls(),
|
||||
];
|
||||
case "angledFlag": return [
|
||||
AngledFlagWorkSpace(),
|
||||
AngledFlagPrototypeControls(),
|
||||
];
|
||||
default: return [null, null];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user