Skip to content

Commit

Permalink
Merge pull request #235 from ucdavis/KL/gpInputs
Browse files Browse the repository at this point in the history
GP Inputs
  • Loading branch information
kaiyanl authored Apr 18, 2022
2 parents 4a48403 + 0eb680c commit f433f82
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
interface Props {
inputs: EscalationInflationInputModGP;
setInputs: (inputs: any) => void;
disabled: boolean;
}

export const EscalationInflationInputGP = (props: Props) => {
Expand All @@ -32,6 +33,7 @@ export const EscalationInflationInputGP = (props: Props) => {
GeneralInflation: e.target.value
})
}
disabled={props.disabled}
/>
<InputGroupAddon addonType='append'>%</InputGroupAddon>
</InputGroup>
Expand All @@ -52,6 +54,7 @@ export const EscalationInflationInputGP = (props: Props) => {
EscalationBiomassFuel: e.target.value
})
}
disabled={props.disabled}
/>
<InputGroupAddon addonType='append'>%/year</InputGroupAddon>
</InputGroup>
Expand All @@ -71,6 +74,7 @@ export const EscalationInflationInputGP = (props: Props) => {
EscalationDualFuel: e.target.value
})
}
disabled={props.disabled}
/>
<InputGroupAddon addonType='append'>%/year</InputGroupAddon>
</InputGroup>
Expand All @@ -90,6 +94,7 @@ export const EscalationInflationInputGP = (props: Props) => {
EscalationProductionTaxCredit: e.target.value
})
}
disabled={props.disabled}
/>
<InputGroupAddon addonType='append'>%</InputGroupAddon>
</InputGroup>
Expand All @@ -109,6 +114,7 @@ export const EscalationInflationInputGP = (props: Props) => {
EscalationHeatSales: e.target.value
})
}
disabled={props.disabled}
/>
<InputGroupAddon addonType='append'>%/year</InputGroupAddon>
</InputGroup>
Expand All @@ -126,6 +132,7 @@ export const EscalationInflationInputGP = (props: Props) => {
EscalationCharSales: e.target.value
})
}
disabled={props.disabled}
/>
<InputGroupAddon addonType='append'>%/year</InputGroupAddon>
</InputGroup>
Expand All @@ -145,6 +152,7 @@ export const EscalationInflationInputGP = (props: Props) => {
EscalationOther: e.target.value
})
}
disabled={props.disabled}
/>
<InputGroupAddon addonType='append'>%/year</InputGroupAddon>
</InputGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export const ExpensesBaseYearInputGP = (props: Props) => {
<FormText color='muted'>Cost of maintaining the plant</FormText>
</FormGroup>
<FormGroup>
<Label>WasteTreatment</Label>
<Label>Waste Treatment</Label>
<InputGroup>
<Input
type='text'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ import {
import { HeatBaseYearInput } from '../HeatBaseYearInput';
import { TaxesInput } from '../TaxesInput';
import { FinancingInput } from '../FinancingInput';
import { IncomeOtherThanEnergyInput } from '../IncomeOtherThanEnergyInput';
import { EscalationInflationInput } from '../EscalationInflationInput';
import { ElectricalAndFuelBaseYearInputGP } from './ElectricalAndFuelBaseYearInputGP';
import { ExpensesBaseYearInputGP } from './ExpensesBaseYearInputGP';
import { CarbonCreditInput } from '../CarbonCreditInput';
import { IncomeOtherThanEnergyInputGP } from './IncomeOtherThanEnergyInputGP';
import { EscalationInflationInputGP } from './EscalationInflationInputGP';

interface Props {
// inputs: InputModGP;
Expand Down Expand Up @@ -96,7 +96,7 @@ export const GasificationPower = (props: Props) => {
}
disabled={props.disabled}
/>
<IncomeOtherThanEnergyInput
<IncomeOtherThanEnergyInputGP
inputs={props.inputs.IncomeOtherThanEnergy}
setInputs={(inputs: IncomeOtherThanEnergyInputModGP) =>
props.setInputs({ ...props.inputs, IncomeOtherThanEnergy: inputs })
Expand All @@ -117,7 +117,7 @@ export const GasificationPower = (props: Props) => {
}}
disabled={props.disabled}
></CarbonCreditInput> */}
<EscalationInflationInput
<EscalationInflationInputGP
inputs={props.inputs.EscalationInflation}
setInputs={(inputs: EscalationInflationInputModGP) =>
props.setInputs({ ...props.inputs, EscalationInflation: inputs })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -33,6 +33,7 @@ export const IncomeOtherThanEnergyInputGP = (props: Props) => {
CapacityPayment: e.target.value
})
}
disabled={props.disabled}
/>
<InputGroupAddon addonType='append'>$/kW-year</InputGroupAddon>
</InputGroup>
Expand All @@ -53,6 +54,7 @@ export const IncomeOtherThanEnergyInputGP = (props: Props) => {
InterestRateOnDebtReserve: e.target.value
})
}
disabled={props.disabled}
/>
<InputGroupAddon addonType='append'>%/year</InputGroupAddon>
</InputGroup>
Expand All @@ -73,6 +75,7 @@ export const IncomeOtherThanEnergyInputGP = (props: Props) => {
SalesPriceForChar: e.target.value
})
}
disabled={props.disabled}
/>
<InputGroupAddon addonType='append'>$/t</InputGroupAddon>
</InputGroup>
Expand Down

0 comments on commit f433f82

Please sign in to comment.