From deb5e74c57c124af622045acd9593426ebb9d5f9 Mon Sep 17 00:00:00 2001 From: Amir Nakhaei <6696894+amirrr@users.noreply.github.com> Date: Thu, 21 Dec 2023 10:33:34 +0100 Subject: [PATCH] removed junk Signed-off-by: iripiri --- src/scenario/scenarios.js | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/src/scenario/scenarios.js b/src/scenario/scenarios.js index 86d82fd..160b4e5 100644 --- a/src/scenario/scenarios.js +++ b/src/scenario/scenarios.js @@ -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 (
-
- this.updateInput(e.target.value)} - value={this.state.input} - /> - -
-
-
    - {todos.map((todo, index) => ( -
  • {todo.content}
  • - ))} -
-
-

Scenarios