mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
removed junk
Signed-off-by: iripiri <ikoester@eonerc.rwth-aachen.de>
This commit is contained in:
parent
d48942a92b
commit
59b3a20dd4
1 changed files with 0 additions and 29 deletions
|
@ -44,18 +44,8 @@ import { getTodos } from "../redux/selectors";
|
|||
class Scenarios extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = { input: "" };
|
||||
}
|
||||
|
||||
updateInput = (input) => {
|
||||
this.setState({ input });
|
||||
};
|
||||
|
||||
handleAddTodo = () => {
|
||||
this.props.addTodo(this.state.input);
|
||||
this.setState({ input: "" });
|
||||
};
|
||||
|
||||
static getStores() {
|
||||
return [
|
||||
ScenarioStore,
|
||||
|
@ -302,27 +292,8 @@ class Scenarios extends Component {
|
|||
width: "30px",
|
||||
};
|
||||
|
||||
const { todos } = this.props;
|
||||
|
||||
return (
|
||||
<div className="section">
|
||||
<div>
|
||||
<input
|
||||
onChange={(e) => this.updateInput(e.target.value)}
|
||||
value={this.state.input}
|
||||
/>
|
||||
<button className="add-todo" onClick={this.handleAddTodo}>
|
||||
Add Todo
|
||||
</button>
|
||||
</div>
|
||||
<div>
|
||||
<ul>
|
||||
{todos.map((todo, index) => (
|
||||
<li key={index}>{todo.content}</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
Scenarios
|
||||
<span className="icon-button">
|
||||
|
|
Loading…
Add table
Reference in a new issue