From 7edca25add7725d331cbe3501803bf368e46708f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Tue, 14 Jul 2015 11:14:15 +0200 Subject: [PATCH] small doc for aclproxy --- js/components/acl_proxy.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/components/acl_proxy.js b/js/components/acl_proxy.js index d348a3f7..86c604de 100644 --- a/js/components/acl_proxy.js +++ b/js/components/acl_proxy.js @@ -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([