ISSUE-045 - Chyron Body - Taking a moment to rename some reducers to be more consistant (verb in front).
This commit is contained in:
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 => ({
|
||||
|
||||
Reference in new issue
Block a user