Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
"use strict";

var __importDefault = this && this.__importDefault || function (mod) {
  return mod && mod.__esModule ? mod : {
    "default": mod
  };
};

Object.defineProperty(exports, "__esModule", {
  value: true
});

const react_1 = __importDefault(require("react"));

const Checkout_1 = require("../..");

const styled_1 = require("./styled");

function defaultRenderProductItem(props) {
  const {
    productItem
  } = props;
  return react_1.default.createElement(styled_1.StyledProductItem, {
    item: productItem
  });
}

exports.defaultRenderProductItem = defaultRenderProductItem;

function defaultRenderShippingAddress(props) {
  return react_1.default.createElement(styled_1.StyledShippingAddress, null);
}

exports.defaultRenderShippingAddress = defaultRenderShippingAddress;

function defaultRenderShippingMethod(props) {
  const {
    shippingMethodOptionList,
    handleShippingMethodChange
  } = props;
  return react_1.default.createElement(styled_1.StyledShippingMethod, {
    list: shippingMethodOptionList,
    onChange: handleShippingMethodChange
  });
}

exports.defaultRenderShippingMethod = defaultRenderShippingMethod;

function defaultRenderDeliveryInstruction(props) {
  const {
    deliveryInstructionConfig,
    handleAddDeliveryInstruction,
    handleRemoveDeliveryInstruction
  } = props;
  return react_1.default.createElement(Checkout_1.DeliveryInstruction, Object.assign({}, deliveryInstructionConfig, {
    onSubmit: handleAddDeliveryInstruction,
    onCancel: handleRemoveDeliveryInstruction
  }));
}

exports.defaultRenderDeliveryInstruction = defaultRenderDeliveryInstruction; //# sourceMappingURL=renderProps.js.map