ISSUE-057 - Progress on building prototyping tools.
New reducers for event slice that allow increasing of car distances, awarding fastest laps, and changing the statuses of cars. Updating more types to enums, which are just better in most cases as far as I can tell.
This commit is contained in:
1 parent
0d41fbc59a
commit
edeba37c6d
13 files changed
+301
-77
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import { theme } from "../../../shared/theme";
|
||||
import { MockupBlock } from "../../Common/MockupBlock.styled";
|
||||
import { TimingBoardLayout } from "./styles";
|
||||
import { TimingTower } from "./TimingTower";
|
||||
|
||||
export function TimingBoard() {
|
||||
return (
|
||||
<TimingBoardLayout>
|
||||
<MockupBlock
|
||||
height="73px"
|
||||
width={`${theme.design.timingTower.rowLeftHalfWidthPx}px`}
|
||||
color="black"
|
||||
/>
|
||||
<TimingTower />
|
||||
</TimingBoardLayout>
|
||||
);
|
||||
}
|
||||
@@ -35,7 +35,7 @@ import {
|
||||
|
||||
export function TimingTower() {
|
||||
|
||||
const { lastUpdate, grid, trackLength, leaderGridSpot } = useSelector(eventSelector);
|
||||
const { lastUpdate, grid, trackLength } = useSelector(eventSelector);
|
||||
const { timingBoard: { timingTower }, timingBoard: { timingTower: { splitsMode } } } = useSelector(
|
||||
broadcastGraphicsSelector,
|
||||
);
|
||||
|
||||
@@ -56,6 +56,7 @@ const Rounded = styled.div<RoundedProp>`
|
||||
roundedCornerTop && css`border-top-right-radius: ${roundedCornerTop}px;`}
|
||||
${({ roundedCornerBottom }) =>
|
||||
roundedCornerBottom && css`border-bottom-right-radius: ${roundedCornerBottom}px;`}
|
||||
transition: border-top-right-radius 500ms, border-bottom-right-radius 500ms;
|
||||
`;
|
||||
|
||||
export const RowLeftHalf = styled(Rounded)`
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
export * from "./TimingBoard";
|
||||
@@ -0,0 +1,10 @@
|
||||
import styled from "styled-components";
|
||||
|
||||
export const TimingBoardLayout = styled.div`
|
||||
position: relative;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
align-items: flex-start;
|
||||
`;
|
||||
Reference in new issue
Block a user