ISSUE-054 - Added bleedover prop to workspace configurations.
This commit is contained in:
1 parent
2a92ee91cb
commit
39bddc4cf1
2 files changed
+8
-3
No files matched your search
@@ -8,24 +8,27 @@ import { updateWorkspace } from "../../../features/workspace/workspaceSlice";
|
||||
import { overlayToolSelector } from "../../../features/overlayTool/overlayToolSelector";
|
||||
import { newWorkspace } from "../../../features/overlayTool/overlayToolSlice";
|
||||
|
||||
import { Px } from "../../../types/style";
|
||||
import { workspaces } from "../../../domain/data/workspaces";
|
||||
import { WorkspaceId } from "../../../types/state";
|
||||
|
||||
import { PreviewWindow, H2, ControlsContainer } from "./styles";
|
||||
import { WorkspaceControls } from "../WorkspaceControls";
|
||||
import { OverlayDisplay } from "../../OverlayTool";
|
||||
|
||||
import { workspaces } from "../../../domain/data/workspaces";
|
||||
import { WorkspaceId } from "../../../types/state";
|
||||
|
||||
type WorkspaceProps = {
|
||||
workspaceId: WorkspaceId,
|
||||
previewContent: ReactNode,
|
||||
prototypeControls: ReactNode,
|
||||
showAnimationSpeedSelector?: boolean,
|
||||
bleedover?: Px,
|
||||
};
|
||||
export const Workspace = ({
|
||||
workspaceId,
|
||||
previewContent,
|
||||
prototypeControls,
|
||||
showAnimationSpeedSelector = false,
|
||||
bleedover,
|
||||
}: WorkspaceProps) => {
|
||||
const dispatch = useDispatch();
|
||||
const { animatedBG, darkBG, workspaceProperties } = useSelector(workspaceSelector);
|
||||
@@ -63,6 +66,7 @@ export const Workspace = ({
|
||||
{previewContent}
|
||||
<OverlayDisplay
|
||||
containerDimensions={workspaceProperties.previewWindowDimensions}
|
||||
bleedover={bleedover}
|
||||
/>
|
||||
</PreviewWindow>
|
||||
<ControlsContainer>
|
||||
|
||||
@@ -95,6 +95,7 @@ export default function Workspaces() {
|
||||
workspaceId="timingBoardFull"
|
||||
previewContent={<TimingTower />}
|
||||
prototypeControls={<div>Timing Tower Full</div>}
|
||||
bleedover={500}
|
||||
/>
|
||||
} />
|
||||
<Route path="timingBoardShort" element={
|
||||
|
||||
Reference in new issue
Block a user