ISSUE-045 - Busy-work, relocating and renaming AngledFlagWorkspace (Workspace, not WorkSpace).
This commit is contained in:
1 parent
ea66fabbef
commit
5e86b92ca5
4 files changed
+18
-10
No files matched your search
+5
-5
@@ -1,15 +1,15 @@
|
|||||||
import { useSelector } from "react-redux";
|
import { useSelector } from "react-redux";
|
||||||
|
|
||||||
import { workspaceSelector } from "../../../features/workspace/workspaceSelector";
|
import { workspaceSelector } from "../../../../features/workspace/workspaceSelector";
|
||||||
import { FlagMode, TeamId } from "../../../types/state";
|
import { FlagMode, TeamId } from "../../../../types/state";
|
||||||
|
|
||||||
import { AngledFlag } from "../../BroadcastGraphics/Common/AngledFlag";
|
import { AngledFlag } from "../../../BroadcastGraphics/Common/AngledFlag";
|
||||||
import { BasicBlock } from "./styles";
|
import { BasicBlock } from "./styles";
|
||||||
|
|
||||||
type AngledFlagWorkSpaceProps = {
|
type AngledFlagWorkspaceProps = {
|
||||||
flagMode: FlagMode,
|
flagMode: FlagMode,
|
||||||
};
|
};
|
||||||
export function AngledFlagWorkSpace({ flagMode }: AngledFlagWorkSpaceProps) {
|
export function AngledFlagWorkspace({ flagMode }: AngledFlagWorkspaceProps) {
|
||||||
const { prototypeState } = useSelector(workspaceSelector);
|
const { prototypeState } = useSelector(workspaceSelector);
|
||||||
if (flagMode === "none") return null;
|
if (flagMode === "none") return null;
|
||||||
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
export * from "./AngledFlagWorkspace";
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
import { Px } from "../../../types/style";
|
import { Px } from "../../../../types/style";
|
||||||
|
|
||||||
type BasicBlockProps = {
|
type BasicBlockProps = {
|
||||||
width: Px,
|
width: Px,
|
||||||
@@ -12,7 +12,7 @@ import { LayoutGrid, LayoutGridItem } from "../Common/LayoutGrid.styled";
|
|||||||
|
|
||||||
import { Workspace } from "./Workspace";
|
import { Workspace } from "./Workspace";
|
||||||
import { ChyronPrototypeControls } from "./PrototypingControls/ChyronPrototype";
|
import { ChyronPrototypeControls } from "./PrototypingControls/ChyronPrototype";
|
||||||
import { AngledFlagWorkSpace } from "./CustomWorkSpaces/AngledFlagWorkSpace";
|
import { AngledFlagWorkspace } from "./CustomWorkSpaces/AngledFlagWorkspace";
|
||||||
import { AngledFlagPrototypeControls } from "./PrototypingControls/AngledFlagPrototype";
|
import { AngledFlagPrototypeControls } from "./PrototypingControls/AngledFlagPrototype";
|
||||||
import { ChyronContainer } from "../BroadcastGraphics/Chyrons/Container";
|
import { ChyronContainer } from "../BroadcastGraphics/Chyrons/Container";
|
||||||
import { IndexHeading } from "../Common/IndexHeading.styled";
|
import { IndexHeading } from "../Common/IndexHeading.styled";
|
||||||
@@ -67,18 +67,25 @@ export default function Workspaces() {
|
|||||||
<Route path="angledFlagCountry" element={
|
<Route path="angledFlagCountry" element={
|
||||||
<Workspace
|
<Workspace
|
||||||
workspaceId="angledFlagCountry"
|
workspaceId="angledFlagCountry"
|
||||||
previewContent={<AngledFlagWorkSpace flagMode="country"/>}
|
previewContent={<AngledFlagWorkspace flagMode="country"/>}
|
||||||
prototypeControls={<AngledFlagPrototypeControls flagMode="country" />}
|
prototypeControls={<AngledFlagPrototypeControls flagMode="country" />}
|
||||||
/>
|
/>
|
||||||
} />
|
} />
|
||||||
<Route path="angledFlagTeam" element={
|
<Route path="angledFlagTeam" element={
|
||||||
<Workspace
|
<Workspace
|
||||||
workspaceId="angledFlagTeam"
|
workspaceId="angledFlagTeam"
|
||||||
previewContent={<AngledFlagWorkSpace flagMode="team"/>}
|
previewContent={<AngledFlagWorkspace flagMode="team"/>}
|
||||||
prototypeControls={<AngledFlagPrototypeControls flagMode="team"/>}
|
prototypeControls={<AngledFlagPrototypeControls flagMode="team"/>}
|
||||||
/>
|
/>
|
||||||
} />
|
} />
|
||||||
<Route path="*" element={<h1>Unknown Workspace</h1>} />
|
<Route path="venetianTransitionPosFlag" element={
|
||||||
|
<Workspace
|
||||||
|
workspaceId="venetianTransitionPosFlag"
|
||||||
|
previewContent={null}
|
||||||
|
prototypeControls={null}
|
||||||
|
/>
|
||||||
|
} />
|
||||||
|
<Route path="*" element={<IndexHeading>Unknown Workspace</IndexHeading>} />
|
||||||
</Routes>
|
</Routes>
|
||||||
</FullScreenContainer>
|
</FullScreenContainer>
|
||||||
</LayoutGridItem>
|
</LayoutGridItem>
|
||||||
|
|||||||
Reference in new issue
Block a user