standardized rendering of inputs
This commit is contained in:
1 parent
32fd7f2dff
commit
53ec0d417b
10 files changed
+77
-53
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import InputWrapper from "../../components/InputWrapper";
|
||||
import InputText from "../../components/InputText";
|
||||
import { ServiceScript } from "../types/script";
|
||||
import { BaseState } from "./BaseState";
|
||||
|
||||
@@ -12,15 +12,10 @@ export default class Generic extends BaseState<{alias: string}> {
|
||||
}
|
||||
renderOptionList(state: ServiceScript): JSX.Element {
|
||||
return <div className="state-manager-options">
|
||||
<InputWrapper label="Description">
|
||||
<input value={state.alias} onChange={e => {
|
||||
e.preventDefault();
|
||||
this.setState({
|
||||
...state,
|
||||
alias: e.target.value,
|
||||
})
|
||||
}}/>
|
||||
</InputWrapper>
|
||||
<InputText label="Description"
|
||||
value={state.alias}
|
||||
onChange={alias => this.setState({...state, alias})}
|
||||
/>
|
||||
<br/>
|
||||
<b>THIS IS NOT SUPPORTED YET!</b>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user