Sha256: 5b77a3627bb36dfba834b1aa0b1674c0d48bde086d6f65dfab1aa62e65ee4f04

Contents?: true

Size: 643 Bytes

Versions: 35

Compression:

Stored size: 643 Bytes

Contents

class EmbeddedAppBar extends React.Component {

  componentDidMount() {
    const { title, icon, buttons, breadcrumb } = this.props;
    ShopifyApp.Bar.initialize({
      title: title || DiscoApp.INITIAL_TITLE,
      icon: icon || DiscoApp.INITIAL_ICON,
      buttons: buttons,
      breadcrumb: breadcrumb
    });
  }

  render() {
    return null;
  }

}

EmbeddedAppBar.propTypes = {
  title: React.PropTypes.string,
  icon: React.PropTypes.string,
  buttons: React.PropTypes.object,
  breadcrumbs: React.PropTypes.object
};

EmbeddedAppBar.defaultProps = {
  title: undefined,
  icon: undefined,
  buttons: {},
  breadcrumbs: undefined
};

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
disco_app-0.16.0 app/assets/components/embedded_app/bar.es6.jsx
disco_app-0.17.0 app/assets/components/embedded_app/bar.es6.jsx
disco_app-0.18.0 app/assets/components/embedded_app/bar.es6.jsx
disco_app-0.18.2 app/assets/components/embedded_app/bar.es6.jsx
disco_app-0.14.4 app/assets/components/embedded_app/bar.es6.jsx
disco_app-0.18.3 app/assets/components/embedded_app/bar.es6.jsx
disco_app-0.18.6 app/assets/components/embedded_app/bar.es6.jsx
disco_app-0.14.3 app/assets/components/embedded_app/bar.es6.jsx
disco_app-0.16.1 app/assets/components/embedded_app/bar.es6.jsx
disco_app-0.15.2 app/assets/components/embedded_app/bar.es6.jsx
disco_app-0.18.4 app/assets/components/embedded_app/bar.es6.jsx
disco_app-0.18.1 app/assets/components/embedded_app/bar.es6.jsx
disco_app-0.12.7.pre.puma.pre.3 app/assets/components/embedded_app/bar.es6.jsx
disco_app-0.14.0 app/assets/components/embedded_app/bar.es6.jsx
disco_app-0.13.6.pre.puma.pre.3 app/assets/components/embedded_app/bar.es6.jsx