Rename EntityDeletionView to ResourceDeletionView
authorFrank Bessou <frank.bessou@logilab.fr>
Tue, 02 May 2017 15:29:58 +0200
changeset 166 81fb40f81007
parent 165 d2c23dcb2cbb
child 167 5837c0eda60c
Rename EntityDeletionView to ResourceDeletionView
src/components/Entity.js
--- a/src/components/Entity.js	Tue May 02 10:06:38 2017 +0200
+++ b/src/components/Entity.js	Tue May 02 15:29:58 2017 +0200
@@ -240,7 +240,7 @@
             );
         } else if (this.props.match.params.view === 'delete') {
             return (
-                <EntityDeletionView
+                <ResourceDeletionView
                     entity={this.state.entity}
                     onConfirm={this.deleteEntity}
                     onCancel={this.navigateToSelf}
@@ -494,7 +494,7 @@
     updateEntity: PropTypes.func.isRequired,
 };
 
-function EntityDeletionView({onConfirm, onCancel}) {
+function ResourceDeletionView({onConfirm, onCancel}) {
     return (
         <div>
             Do you really want to permanently remove this resource?
@@ -506,7 +506,7 @@
 
 }
 
-EntityDeletionView.propTypes = {
+ResourceDeletionView.propTypes = {
     onCancel: PropTypes.func.isRequired,
     onConfirm: PropTypes.func.isRequired,
 };