1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-30 21:52:08 +02:00

small doc for aclproxy

This commit is contained in:
Tim Daubenschütz 2015-07-14 11:14:15 +02:00
parent f729e3c833
commit 7edca25add

View File

@ -2,6 +2,13 @@
import React from 'react'; import React from 'react';
/**
* This component can easily be used to present another component conditionally
* - dependent on their acl.
*
* In order to do that, just wrap AclProxy around the component, add aclObject and
* the acl name you're looking for.
*/
let AclProxy = React.createClass({ let AclProxy = React.createClass({
propTypes: { propTypes: {
children: React.PropTypes.oneOfType([ children: React.PropTypes.oneOfType([