mirror of
https://github.com/ascribe/onion.git
synced 2024-06-30 21:52:08 +02: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';
|
import Button from 'react-bootstrap/lib/Button';
|
||||||
|
|
||||||
let AclInformationButton = React.createClass({
|
let AclInformationButton = React.createClass({
|
||||||
|
propTypes: {
|
||||||
|
verbs: React.PropTypes.oneOfType([
|
||||||
|
React.PropTypes.string,
|
||||||
|
React.PropTypes.arrayOf(React.PropTypes.string)
|
||||||
|
])
|
||||||
|
},
|
||||||
getInitialState() {
|
getInitialState() {
|
||||||
return {isVisible: false};
|
return {isVisible: false};
|
||||||
},
|
},
|
||||||
|
|
|
@ -6,6 +6,13 @@ import { getLangText } from '../../utils/lang_utils';
|
||||||
import { replaceSubstringAtIndex } from '../../utils/general_utils';
|
import { replaceSubstringAtIndex } from '../../utils/general_utils';
|
||||||
|
|
||||||
let AclInformation = React.createClass({
|
let AclInformation = React.createClass({
|
||||||
|
propTypes: {
|
||||||
|
verbs: React.PropTypes.oneOfType([
|
||||||
|
React.PropTypes.string,
|
||||||
|
React.PropTypes.arrayOf(React.PropTypes.string)
|
||||||
|
]),
|
||||||
|
aim: React.PropTypes.string
|
||||||
|
},
|
||||||
render() {
|
render() {
|
||||||
let titleStyle = {
|
let titleStyle = {
|
||||||
color: '#02B6A3',
|
color: '#02B6A3',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user