mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
prop types added
This commit is contained in:
parent
b4b05b3161
commit
2d87533009
@ -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};
|
||||
},
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user