Sha256: 6d47cc815267b6bd3b23811024845e9488ee62fa803f6663d26da4504d84f44c

Contents?: true

Size: 384 Bytes

Versions: 2

Compression:

Stored size: 384 Bytes

Contents

import React from 'react';

export default class PageShadow extends React.Component {
  render() {
    return (
      <div className="shadow_wrapper">
        <div className="shadow" style={this.style()} />
      </div>
    );
  }

  style() {
    if ('gradientOpacity' in this.props.page) {
      return {
        opacity: this.props.page.gradientOpacity / 100
      };
    }
  }
};

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pageflow-react-0.1.1 js/src/components/page_shadow.jsx
pageflow-react-0.1.0 js/src/components/page_shadow.jsx