瀏覽代碼

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

Frederic G. MARAND 8 年之前
父節點
當前提交
c7a360b500
共有 1 個文件被更改,包括 2 次插入2 次删除
  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() {