Explorar o código

Step 11.5: Add a new prop type for Task component.

Frederic G. MARAND %!s(int64=8) %!d(string=hai) anos
pai
achega
c7a360b500
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Task.jsx

+ 2 - 2
Task.jsx

@@ -2,9 +2,9 @@
 
 Task = React.createClass({
   propTypes: {
-    // This component gets the task to display through a React prop.
     // We can use propTypes to indicate it is required.
-    task: React.PropTypes.object.isRequired
+    task: React.PropTypes.object.isRequired,
+    showPrivateButton: React.PropTypes.bool.isRequired
   },
 
   toggleChecked() {