Sha256: 27a1b07d49d6c134dd2f68bfe86db3580461faaabc545295018377db030035ae

Contents?: true

Size: 403 Bytes

Versions: 47

Compression:

Stored size: 403 Bytes

Contents

const UILayoutSection = ({ children, secondary }) => {

  const className = classNames({
    'ui-layout__section': true,
    'ui-layout__section--primary': !secondary,
    'ui-layout__section--secondary': secondary
  });

  return (
    <div className={className}>
      {children}
    </div>
  );
};

UILayoutSection.propTypes = {
  children: React.PropTypes.node,
  secondary: React.PropTypes.bool
};

Version data entries

47 entries across 47 versions & 1 rubygems

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