ISSUE-054 - Last minute clean-up.
This commit is contained in:
1 parent
6e80ed056f
commit
660b9e6651
2 files changed
+2
-10
No files matched your search
@@ -57,14 +57,12 @@ export function TimingTower() {
|
||||
});
|
||||
setRetiredCarsCount(retiredCount);
|
||||
|
||||
setRows(startingGrid.map((car, index, grid) =>
|
||||
buildRow(car, index, startingGrid.length, retiredCount)));
|
||||
setRows(startingGrid.map(car => buildRow(car, startingGrid.length, retiredCount)));
|
||||
}, [lastUpdate, splitsMode]);
|
||||
|
||||
|
||||
const buildRow = (
|
||||
car: Car,
|
||||
index: number,
|
||||
startingCarsCount: number,
|
||||
retiredCarsCount: number,
|
||||
) => {
|
||||
|
||||
+1
-7
@@ -14,17 +14,11 @@ export function TimingTowerPrototypeControls() {
|
||||
|
||||
return (
|
||||
<InlineCluster gutter="md">
|
||||
<ClickSpan
|
||||
onClick={() => {
|
||||
console.log("refreshRunningOrder");
|
||||
dispatch(refreshRunningOrder());
|
||||
}}
|
||||
>
|
||||
<ClickSpan onClick={() => dispatch(refreshRunningOrder())}>
|
||||
Refresh Running Order
|
||||
</ClickSpan>
|
||||
<ClickSpan
|
||||
onClick={() => {
|
||||
console.log("Swap Interval");
|
||||
if (splitsMode === BGTimingTowerSplitsMode.Interval) {
|
||||
dispatch(setTimingTowerSplitsMode(BGTimingTowerSplitsMode.Leader));
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user