1
0
Fork 0
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:
Amir Nakhaei 2023-12-21 10:33:34 +01:00 committed by iripiri
parent d48942a92b
commit 59b3a20dd4

View file

@ -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">