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