Sha256: 6d7f546d2b7577dfa5a2937328ee0e008a33a07caf09b582e32c802269aca890

Contents?: true

Size: 1.01 KB

Versions: 50

Compression:

Stored size: 1.01 KB

Contents

const UIEmptyState = ({ title, subtitle, image, href, label }) => {

  let imageSubsection = null;
  if(image) {
    imageSubsection = (
      <div className="ui-empty-state__subsection">
        <div className="ui-empty-state__items">
          <div className="ui-empty-state__item">
            <div className="ui-empty-state__subitems">
              <div className="ui-empty-state__subitem">
                <img src={image} alt={title} />
              </div>
            </div>
          </div>
        </div>
      </div>
    );
  }

  return(
    <div className="ui-empty-state">
      <div className="ui-empty-state__section">
        <div className="ui-empty-state__subsection">
          <h1 className="ui-empty-state__title">{title}</h1>
          <h2 className="ui-empty-state__subtitle">{subtitle}</h2>
        </div>
        {imageSubsection}
        <div className="ui-empty-state__subsection">
          <a className="btn btn-large btn-primary" href={href}>{label}</a>
        </div>
      </div>
    </div>
  )

};

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
disco_app-0.16.1.pre.sidekiq.pre.6.pre.release app/assets/components/shopify/ui-layout/ui-empty-state.es6.jsx
disco_app-0.9.3 app/assets/javascripts/disco_app/components/ui-kit/ui-layout/ui-empty-state.es6.jsx
disco_app-0.9.4 app/assets/javascripts/disco_app/components/ui-kit/ui-layout/ui-empty-state.es6.jsx
disco_app-0.9.5 app/assets/javascripts/disco_app/components/ui-kit/ui-layout/ui-empty-state.es6.jsx
disco_app-0.9.6 app/assets/javascripts/disco_app/components/ui-kit/ui-layout/ui-empty-state.es6.jsx
disco_app-0.9.7 app/assets/javascripts/disco_app/components/ui-kit/ui-layout/ui-empty-state.es6.jsx
disco_app-0.9.8 app/assets/javascripts/disco_app/components/ui-kit/ui-layout/ui-empty-state.es6.jsx
disco_app-0.9.9 app/assets/javascripts/disco_app/components/ui-kit/ui-layout/ui-empty-state.es6.jsx
disco_app-0.9.10 app/assets/javascripts/disco_app/components/ui-kit/ui-layout/ui-empty-state.es6.jsx
disco_app-0.9.11 app/assets/javascripts/disco_app/components/ui-kit/ui-layout/ui-empty-state.es6.jsx
disco_app-0.10.0 app/assets/javascripts/disco_app/components/ui-kit/ui-layout/ui-empty-state.es6.jsx
disco_app-0.10.1 app/assets/javascripts/disco_app/components/ui-kit/ui-layout/ui-empty-state.es6.jsx
disco_app-0.10.2 app/assets/javascripts/disco_app/components/ui-kit/ui-layout/ui-empty-state.es6.jsx
disco_app-0.10.3 app/assets/javascripts/disco_app/components/ui-kit/ui-layout/ui-empty-state.es6.jsx
disco_app-0.10.4 app/assets/javascripts/disco_app/components/ui-kit/ui-layout/ui-empty-state.es6.jsx
disco_app-0.10.5 app/assets/javascripts/disco_app/components/ui-kit/ui-layout/ui-empty-state.es6.jsx
disco_app-0.11.0 app/assets/components/shopify/ui-layout/ui-empty-state.es6.jsx
disco_app-0.11.1 app/assets/components/shopify/ui-layout/ui-empty-state.es6.jsx
disco_app-0.12.0 app/assets/components/shopify/ui-layout/ui-empty-state.es6.jsx
disco_app-0.12.1 app/assets/components/shopify/ui-layout/ui-empty-state.es6.jsx