Skip to content

Commit

Permalink
Fixed proptypes
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiago Diniz da Silveira committed Dec 14, 2018
1 parent 30de30a commit 34b055b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
12 changes: 7 additions & 5 deletions src/components/todoList.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { PropTypes } from 'mobx-react';
import { PropTypes } from 'prop-types';

const TodoList = (props) => {
const { list, handleRemove } = props;
Expand All @@ -24,10 +24,12 @@ const TodoList = (props) => {
};

TodoList.propTypes = {
list: PropTypes.arrayOf(PropTypes.shape({
status: PropTypes.string,
msg: PropTypes.string,
})).isRequired,
list: PropTypes.arrayOf(
PropTypes.shape({
status: PropTypes.string,
msg: PropTypes.string,
}).isRequired,
).isRequired,
handleRemove: PropTypes.func.isRequired,
};

Expand Down
3 changes: 2 additions & 1 deletion src/containers/todoContainer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { inject, observer, PropTypes } from 'mobx-react';
import { inject, observer } from 'mobx-react';
import { PropTypes } from 'prop-types';
import TodoList from '../components/todoList';

@inject('todoStore')
Expand Down
12 changes: 6 additions & 6 deletions src/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 34b055b

Please sign in to comment.