From 8bbf25ba26780cc28262c6b802952a9f54d6b321 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Thu, 23 Nov 2023 08:10:58 +0100 Subject: [PATCH] Updated the Dialog.jsx component --- client/src/pages/Home/components/Dialog/Dialog.jsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/client/src/pages/Home/components/Dialog/Dialog.jsx b/client/src/pages/Home/components/Dialog/Dialog.jsx index 37d520c..3f2a605 100644 --- a/client/src/pages/Home/components/Dialog/Dialog.jsx +++ b/client/src/pages/Home/components/Dialog/Dialog.jsx @@ -8,8 +8,8 @@ import Button from "@/common/components/Button"; export const Dialog = ({onClose, open}) => { const { - rounds, updateRounds, demandTable, updateDemandTable, startCapital, setStartCapital, costPerCake, - setCostPerCake, costPerRound, setCostPerRound, maxProduction, setMaxProduction, maxPrice, setMaxPrice + rounds, updateRounds, demandTable, updateDemandTable, startCapital, updateStartCapital, costPerCake, + updateCostPerCake, costPerRound, updateCostPerRound, maxProduction, updateProduction, maxPrice, updatePrice } = useContext(SettingsContext); const deleteDemand = (key) => { @@ -65,31 +65,31 @@ export const Dialog = ({onClose, open}) => {

Startkapital

setStartCapital(parseInt(e.target.value))}/> + onChange={(e) => updateStartCapital(parseInt(e.target.value))}/>

Kosten pro Kochen

setCostPerCake(parseInt(e.target.value))}/> + onChange={(e) => updateCostPerCake(parseInt(e.target.value))}/>

Kosten pro Runde

setCostPerRound(parseInt(e.target.value))}/> + onChange={(e) => updateCostPerRound(parseInt(e.target.value))}/>

Absatzmenge

setMaxProduction(parseInt(e.target.value))}/> + onChange={(e) => updateProduction(parseInt(e.target.value))}/>

Absatzpreis

setMaxPrice(parseInt(e.target.value))}/> + onChange={(e) => updatePrice(parseInt(e.target.value))}/>