|  | 
| 2 | 2 | from Component_py.component import destruct | 
| 3 | 3 | 
 | 
| 4 | 4 | React = require("react") | 
| 5 |  | -Form, FormGroup, Label, Input = destruct( | 
| 6 |  | - require("reactstrap"), "Form", "FormGroup", "Label", "Input") | 
|  | 5 | +FormGroup, Label, Input = destruct( | 
|  | 6 | + require("reactstrap"), "FormGroup", "Label", "Input") | 
| 7 | 7 | 
 | 
| 8 | 8 | 
 | 
| 9 | 9 | def FormPanel(props): | 
| 10 | 10 |  def on_text_change(e): | 
| 11 | 11 |  props.form_panel_update(e.target.value) | 
| 12 | 12 | 
 | 
| 13 | 13 |  return __pragma__("xtrans", None, "{}", """ ( | 
| 14 |  | - <Form className="padding"> | 
| 15 |  | - <FormGroup> | 
| 16 |  | - <Label for="text_input">Enter new todo text:</Label> | 
| 17 |  | - <Input | 
| 18 |  | - onChange={on_text_change} | 
| 19 |  | - value={props.form_panel.text} | 
| 20 |  | - id="text_input" | 
| 21 |  | - placeholder="What to do?" /> | 
| 22 |  | - </FormGroup> | 
| 23 |  | - </Form> | 
|  | 14 | + <FormGroup> | 
|  | 15 | + <Label for="text_input">Enter new todo text:</Label> | 
|  | 16 | + <Input | 
|  | 17 | + onChange={on_text_change} | 
|  | 18 | + value={props.form_panel.text} | 
|  | 19 | + id="text_input" | 
|  | 20 | + placeholder="What to do?" /> | 
|  | 21 | + </FormGroup> | 
| 24 | 22 |  ); """) | 
0 commit comments