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} - /> - -
-
- -
-

Scenarios