Repository URL to install this package:
|
Version:
2.0.4 ▾
|
"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