Skip to content

Commit

Permalink
Merge pull request #83 from jetbrains-academy/konstantin/add_extra_re…
Browse files Browse the repository at this point in the history
…moving

Add extra removing items from counter for pot and salad cooking
  • Loading branch information
nbirillo authored Oct 16, 2024
2 parents 941de9d + 70c523e commit 2914544
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions culinaryFrontend/src/components/screens/MainActionsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ export default function MainActionsScreen({gameStateSetter}: MainActionsScreenPr
const smoothieUrl = "/functions/smoothie"

let infoTextActionMap: { [key: string]: string } = {
"SHOW_ON_COUNTER": "<SHOW_ON_COUNTER_TEXT>",
"SHOW_ON_COUNTER": "Placing the current ingredient to the cooking space",
"PUT_IN_POT": "Putting into the pot",
"SIMMER": "Cooking!",
"ADD_TO_SALAD": "Adding to the salad",
"MIX_SALAD": "Mixing the salad",
"BLEND": "Blending",
"ADD_TO_BLENDER": "Adding to the blender",
"REMOVE_FROM_COUNTER": "<REMOVE_FROM_COUNTER_TEXT>",
"REMOVE_FROM_COUNTER": "Removing the current ingredient from the cooking space",
"CUT_ON_COUNTER": "Cutting",
}

Expand Down Expand Up @@ -249,7 +249,7 @@ export default function MainActionsScreen({gameStateSetter}: MainActionsScreenPr
function putInPot(arg: string | null) {
if (arg == null)
return
//removeFromCounter(arg)
removeFromCounter(arg)
let potMap: { [key: string]: () => void } = {
"PEPPER": () => {
setPotOptions(prevOptions => ({
Expand Down Expand Up @@ -337,7 +337,7 @@ export default function MainActionsScreen({gameStateSetter}: MainActionsScreenPr
console.log(arg)
if (arg == null)
return
//removeFromCounter(arg)
removeFromCounter(arg)
let saladMap: { [key: string]: () => void } = {
"CUT_TOMATO": () => {
setSaladBowlOptions(prevOptions => ({
Expand Down

0 comments on commit 2914544

Please sign in to comment.