Skip to content

Commit

Permalink
fix title in proptypes and string required
Browse files Browse the repository at this point in the history
  • Loading branch information
DusanSacha committed Jul 22, 2017
1 parent 458470b commit fa578ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions exercises/proptypes/problem.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class TodoList extends React.Component {
<tbody>
<Todo title="Shopping">Milk</Todo>
<Todo title="Hair cut">13:00</Todo>
<Todo>15:00</Todo>
<Todo title="Learn React">15:00</Todo>
</tbody>
</table>
</div>
Expand All @@ -81,7 +81,7 @@ class Todo extends React.Component {
}
}
Todo.propTypes = {
title: PropTypes.number.isRequired
title: PropTypes.string.isRequired
};
class TodoForm extends React.Component {
Expand Down
4 changes: 2 additions & 2 deletions exercises/proptypes/problem.ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class TodoList extends React.Component {
<tbody>
<Todo title="Shopping">Milk</Todo>
<Todo title="Hair cut">13:00</Todo>
<Todo>15:00</Todo>
<Todo title="Learn React">15:00</Todo>
</tbody>
</table>
</div>
Expand All @@ -80,7 +80,7 @@ class Todo extends React.Component {
}
}
Todo.propTypes = {
title: PropTypes.number.isRequired
title: PropTypes.string.isRequired
};
class TodoForm extends React.Component {
Expand Down
4 changes: 2 additions & 2 deletions exercises/proptypes/problem.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class TodoList extends React.Component {
<tbody>
<Todo title="Shopping">Milk</Todo>
<Todo title="Hair cut">13:00</Todo>
<Todo>15:00</Todo>
<Todo title="Learn React">15:00</Todo>
</tbody>
</table>
</div>
Expand All @@ -77,7 +77,7 @@ class Todo extends React.Component {
}
}
Todo.propTypes = {
title: PropTypes.number.isRequired
title: PropTypes.string.isRequired
};
class TodoForm extends React.Component {
Expand Down

0 comments on commit fa578ba

Please sign in to comment.