Skip to content

Commit fa578ba

Browse files
committed
fix title in proptypes and string required
1 parent 458470b commit fa578ba

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

exercises/proptypes/problem.en.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class TodoList extends React.Component {
6262
<tbody>
6363
<Todo title="Shopping">Milk</Todo>
6464
<Todo title="Hair cut">13:00</Todo>
65-
<Todo>15:00</Todo>
65+
<Todo title="Learn React">15:00</Todo>
6666
</tbody>
6767
</table>
6868
</div>
@@ -81,7 +81,7 @@ class Todo extends React.Component {
8181
}
8282
}
8383
Todo.propTypes = {
84-
title: PropTypes.number.isRequired
84+
title: PropTypes.string.isRequired
8585
};
8686
8787
class TodoForm extends React.Component {

exercises/proptypes/problem.ko.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class TodoList extends React.Component {
6161
<tbody>
6262
<Todo title="Shopping">Milk</Todo>
6363
<Todo title="Hair cut">13:00</Todo>
64-
<Todo>15:00</Todo>
64+
<Todo title="Learn React">15:00</Todo>
6565
</tbody>
6666
</table>
6767
</div>
@@ -80,7 +80,7 @@ class Todo extends React.Component {
8080
}
8181
}
8282
Todo.propTypes = {
83-
title: PropTypes.number.isRequired
83+
title: PropTypes.string.isRequired
8484
};
8585
8686
class TodoForm extends React.Component {

exercises/proptypes/problem.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class TodoList extends React.Component {
5858
<tbody>
5959
<Todo title="Shopping">Milk</Todo>
6060
<Todo title="Hair cut">13:00</Todo>
61-
<Todo>15:00</Todo>
61+
<Todo title="Learn React">15:00</Todo>
6262
</tbody>
6363
</table>
6464
</div>
@@ -77,7 +77,7 @@ class Todo extends React.Component {
7777
}
7878
}
7979
Todo.propTypes = {
80-
title: PropTypes.number.isRequired
80+
title: PropTypes.string.isRequired
8181
};
8282
8383
class TodoForm extends React.Component {

0 commit comments

Comments
 (0)