-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from gemini-hlsw/SCHED-574
Sched 574
- Loading branch information
Showing
7 changed files
with
104 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React, { useContext } from "react"; | ||
import { InputNumber, InputNumberValueChangeEvent } from 'primereact/inputnumber'; | ||
import { GlobalStateContext } from '../GlobalState/GlobalState' | ||
|
||
export default function RankerTweaker () { | ||
|
||
const { thesis, setThesis, | ||
power, setPower, | ||
metPower, setMetPower, | ||
visPower, setVisPower, | ||
whaPower, setWhaPower } = useContext(GlobalStateContext); | ||
|
||
|
||
return ( | ||
<div className="card flex flex-wrap gap-3 p-fluid"> | ||
<div className="flex-auto"> | ||
<label htmlFor="thesis" className="font-bold block mb-2">Thesis factor</label> | ||
<InputNumber inputId="thesis" value={thesis} onValueChange={(e: InputNumberValueChangeEvent) => setThesis(e.value)} useGrouping={false} minFractionDigits={2} maxFractionDigits={5} /> | ||
</div> | ||
<div className="flex-auto"> | ||
<label htmlFor="power" className="font-bold block mb-2">Power factor</label> | ||
<InputNumber inputId="power" value={power} onValueChange={(e: InputNumberValueChangeEvent) => setPower(e.value)} useGrouping={false} /> | ||
</div> | ||
<div className="flex-auto"> | ||
<label htmlFor="metPower" className="font-bold block mb-2">MAT power</label> | ||
<InputNumber inputId="metPower" value={metPower} onValueChange={(e: InputNumberValueChangeEvent) => setMetPower(e.value)} useGrouping={false} minFractionDigits={2} maxFractionDigits={5} /> | ||
</div> | ||
<div className="flex-auto"> | ||
<label htmlFor="visPower" className="font-bold block mb-2">Visibility power</label> | ||
<InputNumber inputId="visPower" value={visPower} onValueChange={(e: InputNumberValueChangeEvent) => setVisPower(e.value)} useGrouping={false} minFractionDigits={2} maxFractionDigits={5} /> | ||
</div> | ||
<div className="flex-auto"> | ||
<label htmlFor="whaPower" className="font-bold block mb-2">WHA power</label> | ||
<InputNumber inputId="whaPower" value={whaPower} onValueChange={(e: InputNumberValueChangeEvent) => setWhaPower(e.value)} useGrouping={false} minFractionDigits={2} maxFractionDigits={5} /> | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.