Skip to content

Instantly share code, notes, and snippets.

View jcgertig's full-sized avatar

Jonathan Gertig jcgertig

View GitHub Profile
@jcgertig
jcgertig / VisibleToUser.js
Created March 15, 2017 19:58
React Pundit
require('./styles.css');
import React, {Component, PropTypes} from 'react';
import { connect } from 'react-redux';
import { meetsPolicy } from 'policies';
class VisibleToUser extends Component {
render() {
let { children, hasUser, type, value, user, action } = this.props;