From 85836c1e99c67d92a60f56a7859ffcfac1884ce9 Mon Sep 17 00:00:00 2001
From: Kaiyan Li <38189032+kaiyanl@users.noreply.github.com>
Date: Mon, 18 Apr 2022 13:37:44 -0700
Subject: [PATCH 1/2] escalation inputs for the gp model
---
...nInflationInput.tsx => EscalationInflationInputGP.tsx} | 8 ++++++++
1 file changed, 8 insertions(+)
rename src/components/Inputs/Technoeconomic/GasificationPower/{EscalationInflationInput.tsx => EscalationInflationInputGP.tsx} (94%)
diff --git a/src/components/Inputs/Technoeconomic/GasificationPower/EscalationInflationInput.tsx b/src/components/Inputs/Technoeconomic/GasificationPower/EscalationInflationInputGP.tsx
similarity index 94%
rename from src/components/Inputs/Technoeconomic/GasificationPower/EscalationInflationInput.tsx
rename to src/components/Inputs/Technoeconomic/GasificationPower/EscalationInflationInputGP.tsx
index efc32fa..0e07105 100644
--- a/src/components/Inputs/Technoeconomic/GasificationPower/EscalationInflationInput.tsx
+++ b/src/components/Inputs/Technoeconomic/GasificationPower/EscalationInflationInputGP.tsx
@@ -12,6 +12,7 @@ import {
interface Props {
inputs: EscalationInflationInputModGP;
setInputs: (inputs: any) => void;
+ disabled: boolean;
}
export const EscalationInflationInputGP = (props: Props) => {
@@ -32,6 +33,7 @@ export const EscalationInflationInputGP = (props: Props) => {
GeneralInflation: e.target.value
})
}
+ disabled={props.disabled}
/>
%
@@ -52,6 +54,7 @@ export const EscalationInflationInputGP = (props: Props) => {
EscalationBiomassFuel: e.target.value
})
}
+ disabled={props.disabled}
/>
%/year
@@ -71,6 +74,7 @@ export const EscalationInflationInputGP = (props: Props) => {
EscalationDualFuel: e.target.value
})
}
+ disabled={props.disabled}
/>
%/year
@@ -90,6 +94,7 @@ export const EscalationInflationInputGP = (props: Props) => {
EscalationProductionTaxCredit: e.target.value
})
}
+ disabled={props.disabled}
/>
%
@@ -109,6 +114,7 @@ export const EscalationInflationInputGP = (props: Props) => {
EscalationHeatSales: e.target.value
})
}
+ disabled={props.disabled}
/>
%/year
@@ -126,6 +132,7 @@ export const EscalationInflationInputGP = (props: Props) => {
EscalationCharSales: e.target.value
})
}
+ disabled={props.disabled}
/>
%/year
@@ -145,6 +152,7 @@ export const EscalationInflationInputGP = (props: Props) => {
EscalationOther: e.target.value
})
}
+ disabled={props.disabled}
/>
%/year
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 2/2] 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