From fe06ea607fac22c9cc7640f0c86eb0944340976b Mon Sep 17 00:00:00 2001 From: Brett Sun Date: Mon, 2 Nov 2015 15:20:02 +0100 Subject: [PATCH] Remove unnecessary default props --- js/components/ascribe_buttons/acls/acl_button.js | 6 ------ js/components/ascribe_forms/acl_form_factory.js | 6 ------ 2 files changed, 12 deletions(-) diff --git a/js/components/ascribe_buttons/acls/acl_button.js b/js/components/ascribe_buttons/acls/acl_button.js index f7149e79..d81a19f4 100644 --- a/js/components/ascribe_buttons/acls/acl_button.js +++ b/js/components/ascribe_buttons/acls/acl_button.js @@ -36,12 +36,6 @@ let AclButton = React.createClass({ className: React.PropTypes.string }, - getDefaultProps() { - return { - buttonAcceptClassName: '' - }; - }, - // Removes the acl_ prefix and converts to upper case sanitizeAction() { if (this.props.buttonAcceptName) { diff --git a/js/components/ascribe_forms/acl_form_factory.js b/js/components/ascribe_forms/acl_form_factory.js index dc5ebd4e..d5494c2d 100644 --- a/js/components/ascribe_forms/acl_form_factory.js +++ b/js/components/ascribe_forms/acl_form_factory.js @@ -31,12 +31,6 @@ let AclFormFactory = React.createClass({ showNotification: React.PropTypes.bool }, - getDefaultProps() { - return { - showNotification: false - }; - }, - isPiece() { return this.props.pieceOrEditions.constructor !== Array; },