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))}/>