ISSUE-045 - Chyron Body - Taking a moment to rename some reducers to be more consistant (verb in front).

This commit is contained in:
Kyle Geib committed 2022-02-09 13:55:52 -05:00
1 parent dbab285578
commit fd18703d1a
5 files changed
+28 -28

No files matched your search

@@ -8,9 +8,9 @@ import { FaPlay, FaStepForward, FaStop } from "react-icons/fa";
import { broadcastGraphicsSelector } from "../../../../features/broadcast/graphics/broadcastGraphicsSelector";
import { broadcastDirectorSelector } from "../../../../features/broadcast/director/broadcastDirectorSelector";
import {
chyronsClear,
chyronsOpenStateIncrement,
chyronsSet,
clearChyrons,
incrementChyronsOpenState,
setChyrons,
} from "../../../../features/broadcast/graphics/broadcastGraphicsSlice";
import { flagModeList, getChyronModesList, getChyronSubModesList } from "../../../../domain/data/broadcastGraphics";
import { BGChyronDriver, BGChyronMode, BGChyrons, BGChyronSubMode, Car, FlagMode } from "../../../../types/state";
@@ -63,16 +63,16 @@ export function ChyronsDirectorControls() {
secondary: secondaryCar != null ? buildDriverChyron(secondaryCar) : null,
},
};
dispatch(chyronsSet(newChyrons));
dispatch(setChyrons(newChyrons));
}
};
const onNext = () => {
dispatch(chyronsOpenStateIncrement());
dispatch(incrementChyronsOpenState());
};
const onClose = () => {
dispatch(chyronsClear());
dispatch(clearChyrons());
};
const buildDriverChyron = (car: Car): BGChyronDriver => ({
@@ -3,7 +3,7 @@ import { findIndex } from "lodash";
import { useDispatch, useSelector } from "react-redux";
import { broadcastDirectorSelector } from "../../../../features/broadcast/director/broadcastDirectorSelector";
import { selectedCarsAdd, selectedCarsClear, selectedCarsRemove } from "../../../../features/broadcast/director/broadcastDirectorSlice";
import { pushSelectedCars, clearSelectedCars, removeSelectedCars } from "../../../../features/broadcast/director/broadcastDirectorSlice";
import { eventSelector } from "../../../../features/event/eventSelector";
import { Car } from "../../../../types/state";
import { carMatch } from "../../../../utils/comparators";
@@ -21,13 +21,13 @@ export function GridSelection() {
const carClick = (car: Car, selected: boolean) => () => {
if (selected) {
dispatch(selectedCarsRemove(car));
dispatch(removeSelectedCars(car));
} else {
dispatch(selectedCarsAdd(car));
dispatch(pushSelectedCars(car));
}
};
const carDoubleClick = (car: Car) => () => {
dispatch(selectedCarsClear(car));
dispatch(clearSelectedCars(car));
};
return (