mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 10:25:08 +01:00
small doc for aclproxy
This commit is contained in:
parent
f729e3c833
commit
7edca25add
@ -2,6 +2,13 @@
|
||||
|
||||
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({
|
||||
propTypes: {
|
||||
children: React.PropTypes.oneOfType([
|
||||
|
Loading…
Reference in New Issue
Block a user