Remove etype from EntitiesView
authorFrank Bessou <frank.bessou@logilab.fr>
Tue, 04 Apr 2017 16:30:12 +0200
changeset 76 0aff36e8062a
parent 75 8ef8d6f31fca
child 77 956d78e0d931
Remove etype from EntitiesView
src/components/Entities.js
--- a/src/components/Entities.js	Tue Apr 04 16:20:04 2017 +0200
+++ b/src/components/Entities.js	Tue Apr 04 16:30:12 2017 +0200
@@ -21,7 +21,7 @@
         if (this.state.entities === null) {
             return <p>loading...</p>;
         }
-        return <EntitiesView {...this.state} etype={this.props.params.etype} />;
+        return <EntitiesView {...this.state} />;
     }
 }
 
@@ -37,12 +37,11 @@
     }
     return (
         <div className="text-mutted">
-            no {props.etype} entity yet
+            no {props.entities.etype} entity yet
         </div>
     );
 }
 
 EntitiesView.propTypes = {
-    etype: React.PropTypes.string.isRequired,
     entities: PropTypesEntitiesModel.isRequired,
 };