From 0eb680c791a1f33a2b7cecf285e75921081461dd Mon Sep 17 00:00:00 2001
From: Kaiyan Li <38189032+kaiyanl@users.noreply.github.com>
Date: Mon, 18 Apr 2022 13:38:15 -0700
Subject: [PATCH] use correct inputs for the gp model
---
.../GasificationPower/ExpensesBaseYearInputGP.tsx | 2 +-
.../GasificationPower/GasificationPower.tsx | 8 ++++----
.../GasificationPower/IncomeOtherThanEnergyInputGP.tsx | 5 ++++-
3 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/src/components/Inputs/Technoeconomic/GasificationPower/ExpensesBaseYearInputGP.tsx b/src/components/Inputs/Technoeconomic/GasificationPower/ExpensesBaseYearInputGP.tsx
index d578c20..9ee6003 100644
--- a/src/components/Inputs/Technoeconomic/GasificationPower/ExpensesBaseYearInputGP.tsx
+++ b/src/components/Inputs/Technoeconomic/GasificationPower/ExpensesBaseYearInputGP.tsx
@@ -228,7 +228,7 @@ export const ExpensesBaseYearInputGP = (props: Props) => {
Cost of maintaining the plant
-
+
{
}
disabled={props.disabled}
/>
-
props.setInputs({ ...props.inputs, IncomeOtherThanEnergy: inputs })
@@ -117,7 +117,7 @@ export const GasificationPower = (props: Props) => {
}}
disabled={props.disabled}
> */}
-
props.setInputs({ ...props.inputs, EscalationInflation: inputs })
diff --git a/src/components/Inputs/Technoeconomic/GasificationPower/IncomeOtherThanEnergyInputGP.tsx b/src/components/Inputs/Technoeconomic/GasificationPower/IncomeOtherThanEnergyInputGP.tsx
index 8446555..b2e41d5 100644
--- a/src/components/Inputs/Technoeconomic/GasificationPower/IncomeOtherThanEnergyInputGP.tsx
+++ b/src/components/Inputs/Technoeconomic/GasificationPower/IncomeOtherThanEnergyInputGP.tsx
@@ -8,11 +8,11 @@ import {
Input,
InputGroupAddon
} from 'reactstrap';
-import { IncomeOtherThanEnergyInputModGPClass } from '../../../../models/GPClasses';
interface Props {
inputs: IncomeOtherThanEnergyInputModGP;
setInputs: (inputs: any) => void;
+ disabled: boolean;
}
export const IncomeOtherThanEnergyInputGP = (props: Props) => {
@@ -33,6 +33,7 @@ export const IncomeOtherThanEnergyInputGP = (props: Props) => {
CapacityPayment: e.target.value
})
}
+ disabled={props.disabled}
/>
$/kW-year
@@ -53,6 +54,7 @@ export const IncomeOtherThanEnergyInputGP = (props: Props) => {
InterestRateOnDebtReserve: e.target.value
})
}
+ disabled={props.disabled}
/>
%/year
@@ -73,6 +75,7 @@ export const IncomeOtherThanEnergyInputGP = (props: Props) => {
SalesPriceForChar: e.target.value
})
}
+ disabled={props.disabled}
/>
$/t