From 2d8753300985e313be28c32d4fd4433c3444572e Mon Sep 17 00:00:00 2001 From: Cevo Date: Wed, 14 Oct 2015 11:41:16 +0200 Subject: [PATCH] prop types added --- js/components/ascribe_buttons/acl_information_button.js | 6 ++++++ js/components/ascribe_information/acl_information.js | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/js/components/ascribe_buttons/acl_information_button.js b/js/components/ascribe_buttons/acl_information_button.js index efca1664..2daba3a9 100644 --- a/js/components/ascribe_buttons/acl_information_button.js +++ b/js/components/ascribe_buttons/acl_information_button.js @@ -8,6 +8,12 @@ import AclInformation from '../ascribe_information/acl_information'; import Button from 'react-bootstrap/lib/Button'; let AclInformationButton = React.createClass({ + propTypes: { + verbs: React.PropTypes.oneOfType([ + React.PropTypes.string, + React.PropTypes.arrayOf(React.PropTypes.string) + ]) + }, getInitialState() { return {isVisible: false}; }, diff --git a/js/components/ascribe_information/acl_information.js b/js/components/ascribe_information/acl_information.js index 80dc5f22..cc379e9c 100644 --- a/js/components/ascribe_information/acl_information.js +++ b/js/components/ascribe_information/acl_information.js @@ -6,6 +6,13 @@ import { getLangText } from '../../utils/lang_utils'; import { replaceSubstringAtIndex } from '../../utils/general_utils'; let AclInformation = React.createClass({ + propTypes: { + verbs: React.PropTypes.oneOfType([ + React.PropTypes.string, + React.PropTypes.arrayOf(React.PropTypes.string) + ]), + aim: React.PropTypes.string + }, render() { let titleStyle = { color: '#02B6A3',