Sha256: 1003295b72e8300905a48d2a82f30ce5d50755ccf1da5893c629c5fb3fb46200

Contents?: true

Size: 1.75 KB

Versions: 21

Compression:

Stored size: 1.75 KB

Contents

var ShopRow = (props) => {

    var shop = props.shop,
        editShopUrl = props.editShopUrl.replace(':id', shop.id),
        domainName = shop.attributes['domain'],
        countryName = shop.attributes['country-name'],
        currency = shop.attributes['currency'],
        planName = shop.attributes['plan-display-name'],
        editSubscriptionUrl = props.editSubscriptionUrl
          .replace(':shop_id', shop.id)
          .replace(':id', shop.attributes['current-subscription-id']),
        subscriptionPlan = shop.attributes['current-subscription-display-plan'],
        subscriptionAmount = shop.attributes['current-subscription-display-amount'],
        subscriptionSource = shop.attributes['current-subscription-source'],
        installedDuration = shop.attributes['installed-duration'];

    var subscriptionContent = null;
    if(shop.attributes['current-subscription-id']) {
      subscriptionContent = <a href={editSubscriptionUrl}>{subscriptionPlan} ({subscriptionAmount})</a>;
    } else {
      subscriptionContent = <span>{subscriptionPlan} ({subscriptionAmount})</span>;
    }

    var planCodeContent = null;
    if(shop.attributes['current-subscription-display-plan-code']) {
      planCodeContent = <span><br />{shop.attributes['current-subscription-display-plan-code']}</span>;
    }

    return (
        <tr>
            <td>
              {domainName}
              <br />
              <a href={'mailto:' + shop.attributes.email}>{shop.attributes.email}</a>
            </td>
            <td>{shop.attributes.status}</td>
            <td>{countryName}</td>
            <td>{planName}</td>
            <td>{subscriptionContent}{planCodeContent}</td>
            <td>{subscriptionSource}</td>
            <td>{installedDuration}</td>
        </tr>
    )
};

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
disco_app-0.16.1.pre.sidekiq.pre.6.pre.release app/assets/javascripts/disco_app/components/custom/shop_row.js.jsx
disco_app-0.13.6 app/assets/javascripts/disco_app/components/custom/shop_row.js.jsx
disco_app-0.13.7 app/assets/javascripts/disco_app/components/custom/shop_row.js.jsx
disco_app-0.13.8 app/assets/javascripts/disco_app/components/custom/shop_row.js.jsx
disco_app-0.14.1 app/assets/javascripts/disco_app/components/custom/shop_row.js.jsx
disco_app-0.14.2 app/assets/javascripts/disco_app/components/custom/shop_row.js.jsx
disco_app-0.15.0 app/assets/javascripts/disco_app/components/custom/shop_row.js.jsx
disco_app-0.16.0 app/assets/javascripts/disco_app/components/custom/shop_row.js.jsx
disco_app-0.17.0 app/assets/javascripts/disco_app/components/custom/shop_row.js.jsx
disco_app-0.18.0 app/assets/javascripts/disco_app/components/custom/shop_row.js.jsx
disco_app-0.18.2 app/assets/javascripts/disco_app/components/custom/shop_row.js.jsx
disco_app-0.14.4 app/assets/javascripts/disco_app/components/custom/shop_row.js.jsx
disco_app-0.18.3 app/assets/javascripts/disco_app/components/custom/shop_row.js.jsx
disco_app-0.18.6 app/assets/javascripts/disco_app/components/custom/shop_row.js.jsx
disco_app-0.14.3 app/assets/javascripts/disco_app/components/custom/shop_row.js.jsx
disco_app-0.16.1 app/assets/javascripts/disco_app/components/custom/shop_row.js.jsx
disco_app-0.15.2 app/assets/javascripts/disco_app/components/custom/shop_row.js.jsx
disco_app-0.18.4 app/assets/javascripts/disco_app/components/custom/shop_row.js.jsx
disco_app-0.18.1 app/assets/javascripts/disco_app/components/custom/shop_row.js.jsx
disco_app-0.14.0 app/assets/javascripts/disco_app/components/custom/shop_row.js.jsx