How to use the radium.Enhancer function in radium

To help you get started, we’ve selected a few radium examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github react-rally / www / 2015 / app / screens / Speakers / components / Avatar.js View on Github external
}

Avatar.propTypes = {
  speaker: PropTypes.shape({
    image: PropTypes.string,
    name: PropTypes.string,
    github: PropTypes.string,
    twitter: PropTypes.string,
    intro: PropTypes.oneOfType([
      PropTypes.string,
      React.PropTypes.element
    ])
  })
};

Avatar = Radium.Enhancer(Avatar);
export default Avatar;
github react-rally / www / 2015 / app / screens / Home / index.js View on Github external
title="Follow us on Twitter"
          right={55}
        />
        
      
    );
  }
}

Home = Radium.Enhancer(Home);
export default Home;
github react-rally / www / 2015 / app / screens / Tickets / index.js View on Github external
<p style="{STYLES.p}">
            The Golden Ticket. Super Bowl tickets. Backstage passes to T Swizzle. React Rally tickets. High demand, limited supply.
          </p>
          <p style="{STYLES.p}">
            Tickets are now on sale. There are limited tickets available, so don't procrastinate, and miss out!
          </p>
          <p style="{STYLES.p}">
            Buy Tickets
          </p>
        
      
    );
  }
}

var Tickets = Radium.Enhancer(TicketsComponent)
export default Tickets
github react-rally / www / 2015 / app / components / ButtonLink.js View on Github external
class ButtonLink extends Component {
  render() {
    return (
      <a href="{this.props.href}">
        {this.props.children}
      </a>
    );
  }
}

ButtonLink.propTypes = {
  href: PropTypes.string.isRequired,
  style: PropTypes.object
};

ButtonLink = Radium.Enhancer(ButtonLink);
export default ButtonLink;