Sha256: 041d99243017720af3fc206f69818882c0d35795fb03dcabb0d85eb07e121412

Contents?: true

Size: 999 Bytes

Versions: 1

Compression:

Stored size: 999 Bytes

Contents

var ShopRow = (props) => {

    var shop = props.shop,
        editShopUrl = props.editShopUrl.replace(':id', shop.id),
        shopifyDomain = shop.attributes['shopify_domain'],
        countryName = shop.attributes['country_name'],
        currency = shop.attributes['currency'],
        domainName = shop.attributes['domain'],
        planName = shop.attributes['plan_display_name'],
        prettyCreatedDate = shop.attributes['pretty_created_at'],
        installedDuration = shop.attributes['installed_duration'];

    return (
        <tr>
            <td><a href={editShopUrl}>#{shop.id}</a></td>
            <td>{shopifyDomain}</td>
            <td>{shop.attributes.status}</td>
            <td>{shop.attributes.email}</td>
            <td>{countryName}</td>
            <td>{shop.attributes.currency}</td>
            <td>{shop.attributes.domain}</td>
            <td>{planName}</td>
            <td>{prettyCreatedDate}</td>
            <td>{installedDuration}</td>
        </tr>
    )
};

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
disco_app-0.8.9 app/assets/javascripts/disco_app/components/shop_row.js.jsx