Skip to content

Commit

Permalink
Merge branch 'feat/2024updates'
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonTheBusyBeaver117 committed Feb 9, 2024
2 parents 9076efb + 312bd3d commit 6b150fb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
8 changes: 4 additions & 4 deletions src/components/inputs/ImageClick.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,12 @@ const ImageClick = ({ prop, phase, full, locations}) => {

const dispatchShot = (shotType) => {

const currentJSON = [...current, {
const currentJSON = [...current, JSON.stringify({
shotType: shotType,
x: shotLocation.x,
y: shotLocation.y,
cycleTime: cycleTime,
}]
})]

console.log(currentJSON)

Expand All @@ -223,10 +223,10 @@ const ImageClick = ({ prop, phase, full, locations}) => {

const dispatchButtonLocation = (location) => {

const currentJSON = [...current, {
const currentJSON = [...current, JSON.stringify({
shotType: "intakeNote",
location: location,
}]
})]

console.log(currentJSON)

Expand Down
27 changes: 11 additions & 16 deletions src/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,8 @@ export const initialState = {
prevCycleTimeStamp: 0,
scoreSpeaker: 0,
scoreAmp: 0,
intakeNote: undefined,
},
teleop: {
scoreSpeaker: 0,
scoreAmp: 0,
scoreAmpedSpeaker: 0,
shuttlePieces: false,
shotData: [],
prevCycleTimeStamp: 0,
},
Expand Down Expand Up @@ -76,20 +71,20 @@ export const initialState = {
...teamQual
},

qualitative: {
team1Number: undefined,
team1Quickness: 1,
team1FieldAwareness: 1,
// qualitative: {
// team1Number: undefined,
// team1Quickness: 1,
// team1FieldAwareness: 1,

team2Number: undefined,
team2Quickness: 1,
team2FieldAwareness: 1,
// team2Number: undefined,
// team2Quickness: 1,
// team2FieldAwareness: 1,

team3Number: undefined,
team3Quickness: 1,
team3FieldAwareness: 1,
// team3Number: undefined,
// team3Quickness: 1,
// team3FieldAwareness: 1,

},
// },

undoStack: {
auto: [],
Expand Down

0 comments on commit 6b150fb

Please sign in to comment.