@weareconceptstudio/account 0.4.7 → 0.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/CustomCheckbox/index.js +1 -1
- package/dist/components/Sequence/index.js +12 -12
- package/dist/components/TotalCheckout/BalanceComp/index.js +3 -3
- package/dist/components/TotalCheckout/BalanceComp/utils.js +2 -2
- package/dist/components/TotalCheckout/CommentComp/index.js +1 -1
- package/dist/components/TotalCheckout/FreeShippingComp/index.js +3 -3
- package/dist/components/TotalCheckout/PromoCodeComp/AppliedPromotion/index.d.ts +5 -0
- package/dist/components/TotalCheckout/PromoCodeComp/AppliedPromotion/index.js +11 -0
- package/dist/components/TotalCheckout/PromoCodeComp/index.d.ts +2 -1
- package/dist/components/TotalCheckout/PromoCodeComp/index.js +14 -11
- package/dist/components/TotalCheckout/PromoCodeComp/utils.js +1 -3
- package/dist/components/TotalCheckout/Skeleton/index.js +0 -1
- package/dist/components/TotalCheckout/index.js +11 -11
- package/dist/components/WarningMessageForPopup/index.js +4 -4
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/index.js +8 -8
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/index.js +3 -3
- package/dist/modules/account/AccountBalanceTemplate/HistoryBalance/ItemHistory/index.js +4 -4
- package/dist/modules/account/AccountBalanceTemplate/HistoryBalance/index.js +3 -3
- package/dist/modules/account/AccountBalanceTemplate/StatusBalance/ItemStatus/index.js +5 -5
- package/dist/modules/account/AccountBalanceTemplate/StatusBalance/index.js +1 -1
- package/dist/modules/account/AccountBalanceTemplate/index.js +1 -1
- package/dist/modules/account/AccountSettingsTemplate/AccountInfo/index.js +5 -5
- package/dist/modules/account/AccountSettingsTemplate/AccountInfo/utils.js +10 -10
- package/dist/modules/account/AccountSettingsTemplate/AccountPassword/index.js +6 -6
- package/dist/modules/account/AccountSettingsTemplate/AccountPassword/utils.js +4 -4
- package/dist/modules/account/AccountTemplate/index.js +3 -3
- package/dist/modules/address/AddressForm/index.js +3 -3
- package/dist/modules/address/AddressItem/index.js +8 -8
- package/dist/modules/address/AddressWrap/index.js +2 -2
- package/dist/modules/address/AddressesTemplate/index.js +2 -2
- package/dist/modules/address/EmptyAddress/index.js +1 -1
- package/dist/modules/address/SelectAddress/index.js +6 -6
- package/dist/modules/address/SelectAddressPopup/index.js +4 -4
- package/dist/modules/address/ShippingBillingInfo/index.js +6 -3
- package/dist/modules/auth/ForgotPasswordTemplate/index.js +9 -9
- package/dist/modules/auth/ResetPasswordTemplate/ExpiredLink/index.js +3 -3
- package/dist/modules/auth/ResetPasswordTemplate/index.js +6 -8
- package/dist/modules/auth/ResetPasswordTemplate/utils.js +2 -2
- package/dist/modules/auth/SignInTemplate/index.js +6 -8
- package/dist/modules/auth/SignInTemplate/utils.js +4 -4
- package/dist/modules/auth/SignUpTemplate/index.js +8 -8
- package/dist/modules/auth/SignUpTemplate/utils.js +9 -9
- package/dist/modules/auth/VerifyEmailAddressTemplate/index.js +11 -11
- package/dist/modules/cart/CartTemplate/index.js +5 -5
- package/dist/modules/cart/EmptyCart/index.js +3 -3
- package/dist/modules/cart/SimpleItems/Item/index.js +1 -1
- package/dist/modules/cart/SimpleItems/ItemMobile/index.js +2 -2
- package/dist/modules/cart/SimpleItems/index.js +5 -5
- package/dist/modules/checkout/CheckoutTemplate/StepReview/index.js +2 -2
- package/dist/modules/checkout/CheckoutTemplate/StepShipping/index.js +1 -1
- package/dist/modules/checkout/CheckoutTemplate/index.js +1 -1
- package/dist/modules/checkout/ThankYouTemplate/index.js +5 -5
- package/dist/modules/order/EmptyOrders/index.js +3 -3
- package/dist/modules/order/OrderDetails/index.js +9 -9
- package/dist/modules/order/OrderIndividualTemplate/index.js +1 -1
- package/dist/modules/order/OrderStatus/index.js +1 -1
- package/dist/modules/order/OrderedItems/index.js +13 -13
- package/dist/modules/order/OrdersList/OrderItem/index.js +1 -1
- package/dist/modules/order/OrdersList/index.js +19 -11
- package/dist/modules/payment/AddNewCard/index.js +1 -1
- package/dist/modules/payment/Card/index.js +3 -3
- package/dist/modules/payment/Payment/index.js +1 -1
- package/dist/modules/payment/PaymentMethodItem/index.js +1 -1
- package/dist/modules/payment/PaymentMethodsTemplate/index.js +1 -1
- package/dist/modules/payment/SelectPaymentMethodPopup/index.js +3 -3
- package/dist/translations/en.d.ts +237 -214
- package/dist/translations/en.js +237 -214
- package/dist/translations/hy.d.ts +237 -214
- package/dist/translations/hy.js +237 -214
- package/dist/translations/index.d.ts +711 -642
- package/dist/translations/ru.d.ts +237 -214
- package/dist/translations/ru.js +237 -214
- package/package.json +1 -1
|
@@ -21,19 +21,19 @@ const CartTemplate = ({ children, actions, checkoutUrl = '/checkout/', moreMenu,
|
|
|
21
21
|
React.createElement(CartTemplateStyle, null,
|
|
22
22
|
React.createElement(TotalCheckout, { total: total, loading: loading, subtotal: subtotal, itemsCount: itemsCount, shippingCost: shippingCost, freeShippingRange: freeShippingRange, shippingCostValue: shippingCostValue, buttonProps: {
|
|
23
23
|
url: checkoutUrl,
|
|
24
|
-
text: 'proceedToCheckout',
|
|
24
|
+
text: 'account.cart_checkout.proceedToCheckout',
|
|
25
25
|
} }, !loading ? (itemsCount > 0 ? (React.createElement(React.Fragment, null,
|
|
26
26
|
shopUrl ? (React.createElement(AccountButton, { url: shopUrl, btnType: `purple-text`, className: `back-to-shop` },
|
|
27
27
|
leftArrow,
|
|
28
|
-
translate('backToShop'))) : null,
|
|
29
|
-
React.createElement(SimpleCartItems, { data: items, smallFontSize: true, title: 'myCart', actions: actions, className: `cart-st-wrap`, additionalParameters: {
|
|
28
|
+
translate('account.general_actions.backToShop'))) : null,
|
|
29
|
+
React.createElement(SimpleCartItems, { data: items, smallFontSize: true, title: 'account.cart_checkout.myCart', actions: actions, className: `cart-st-wrap`, additionalParameters: {
|
|
30
30
|
remove: true,
|
|
31
31
|
select: true,
|
|
32
32
|
horizontalLine: true,
|
|
33
33
|
edit: { list: false },
|
|
34
34
|
} }),
|
|
35
|
-
shopUrl ? (React.createElement(AccountButton, { url: shopUrl, btnType: `purple-text`, text: `continueShopping`, className: `continue-shop-text` })) : null,
|
|
36
|
-
moreMenu
|
|
35
|
+
shopUrl ? (React.createElement(AccountButton, { url: shopUrl, btnType: `purple-text`, text: `account.general_actions.continueShopping`, className: `continue-shop-text` })) : null,
|
|
36
|
+
moreMenu || null)) : (React.createElement(EmptyCart, { data: items, shoppingUrl: shopUrl, emptyCartIcon: emptyCartIcon }))) : (React.createElement(SkeletonCartTemplate, { shopUrl: shopUrl }))),
|
|
37
37
|
children))));
|
|
38
38
|
};
|
|
39
39
|
export default CartTemplate;
|
|
@@ -8,8 +8,8 @@ const EmptyCart = ({ shoppingUrl, emptyCartIcon }) => {
|
|
|
8
8
|
return (React.createElement(EmptyCartStyle, null,
|
|
9
9
|
React.createElement("div", { className: `empty-cart-wrap` },
|
|
10
10
|
emptyCartIcon || React.createElement("div", { className: 'wrapper-icon' }, emptyCartIconDefault),
|
|
11
|
-
React.createElement(Text, { tag: `h4`, className: `account-h6 account-font-bold account-primary-color1 empty-cart-title`, text: `cartEmpty` }),
|
|
12
|
-
React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1 empty-cart-description`, text: `cartEmptyDesc` }),
|
|
13
|
-
shoppingUrl ? (React.createElement(AccountButton, {
|
|
11
|
+
React.createElement(Text, { tag: `h4`, className: `account-h6 account-font-bold account-primary-color1 empty-cart-title`, text: `account.cart_checkout.cartEmpty` }),
|
|
12
|
+
React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1 empty-cart-description`, text: `account.cart_checkout.cartEmptyDesc` }),
|
|
13
|
+
shoppingUrl ? (React.createElement(AccountButton, { url: shoppingUrl, btnType: 'purple-text', className: 'empty-cart-btn', text: `account.general_actions.shopNow` })) : null)));
|
|
14
14
|
};
|
|
15
15
|
export default EmptyCart;
|
|
@@ -39,7 +39,7 @@ const Item = memo(({ data, remove, select, isLast, actions, maxQty, currency })
|
|
|
39
39
|
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-secondary-color2 align-right cart-sale-total`, text: `${data.sale_total} ${currency}` }),
|
|
40
40
|
React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color2 line-through value align-right cart-total1`, text: handlePriceCheckFunc(data.product.price * data.qty, currency) }))) : (React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 align-right cart-total2`, text: `${data.total} ${currency}` }))),
|
|
41
41
|
React.createElement("div", { className: `favorite-and-remove-wrap` }, remove && (React.createElement("div", { className: `remove-btn-wrap` },
|
|
42
|
-
React.createElement(AccountButton, { text: 'remove', btnType: `green-small-text`, className: 'cart-remove-btn', onClick: () => actions.delete({ productId: data.product?.id }) }))))))),
|
|
42
|
+
React.createElement(AccountButton, { text: 'account.general_actions.remove', btnType: `green-small-text`, className: 'cart-remove-btn', onClick: () => actions.delete({ productId: data.product?.id }) }))))))),
|
|
43
43
|
isLast ? React.createElement("div", { className: 'line' }) : null));
|
|
44
44
|
});
|
|
45
45
|
export default Item;
|
|
@@ -30,12 +30,12 @@ const ItemMobile = memo(({ data, remove, select, actions, maxQty, currency }) =>
|
|
|
30
30
|
React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color2 line-through mobile-total-price`, text: handlePriceCheckFunc(data.product.price * data.qty, currency) }))) : (React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 mobile-total-price2`, text: `${data.total} ${currency}` })),
|
|
31
31
|
select ? (React.createElement("div", { className: `inner-container` }, !data.product?.out_of_stock ? (React.createElement(AccountCounter, { productId: data?.product.id })) : (React.createElement("div", { className: `in-block` },
|
|
32
32
|
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1 mobile-quantity-with-symbol` },
|
|
33
|
-
translate('quantity'),
|
|
33
|
+
translate('account.order_balance.quantity'),
|
|
34
34
|
":"),
|
|
35
35
|
"\u00A0",
|
|
36
36
|
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1 mobile-quantity`, text: data.qty }))))) : (React.createElement("div", { className: `in-block` },
|
|
37
37
|
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1 mobile-quantity-with-symbol2` },
|
|
38
|
-
translate('quantity'),
|
|
38
|
+
translate('account.order_balance.quantity'),
|
|
39
39
|
":"),
|
|
40
40
|
"\u00A0",
|
|
41
41
|
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1 mobile-quantity2`, text: data.qty }))))))),
|
|
@@ -15,13 +15,13 @@ const CartItems = memo(({ data, className, title, smallFontSize, additionalParam
|
|
|
15
15
|
return winWidth >= 768 ? (React.createElement("div", { className: `order-items-table-wrap` },
|
|
16
16
|
React.createElement("div", { className: `titles-wrap` },
|
|
17
17
|
React.createElement("div", { className: `title-wrap tl-col-1` },
|
|
18
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 nowrap`, text: `item` })),
|
|
18
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 nowrap`, text: `account.order_balance.item` })),
|
|
19
19
|
React.createElement("div", { className: `title-wrap tl-col-2` },
|
|
20
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 nowrap`, text: `quantity` })),
|
|
20
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 nowrap`, text: `account.order_balance.quantity` })),
|
|
21
21
|
React.createElement("div", { className: `title-wrap tl-col-3 title-item` },
|
|
22
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 nowrap align-right`, text: `price` })),
|
|
22
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 nowrap align-right`, text: `account.order_balance.price` })),
|
|
23
23
|
React.createElement("div", { className: `title-wrap tl-col-4 title-item` },
|
|
24
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 nowrap align-right`, text: `total` }))),
|
|
24
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 nowrap align-right`, text: `account.order_balance.total` }))),
|
|
25
25
|
React.createElement("div", { className: `items-wrap` }, data?.length > 0
|
|
26
26
|
? data.map((item, index) => {
|
|
27
27
|
return (React.createElement(Item, { key: index, data: item, maxQty: maxQty, actions: actions, currency: currency, isLast: data.length - 1 == index, select: additionalParameters.select, remove: additionalParameters.remove, edit: additionalParameters.edit.item }));
|
|
@@ -35,7 +35,7 @@ const CartItems = memo(({ data, className, title, smallFontSize, additionalParam
|
|
|
35
35
|
return (React.createElement(CartItemsStyle, { className: className || '' },
|
|
36
36
|
additionalParameters.edit.list ? (React.createElement("div", { className: `title-edit-wrapper` },
|
|
37
37
|
React.createElement(Text, { className: `account-p ${smallFontSize ? 'account-p2' : 'account-p1'} account-font-bold account-primary-color1 cart-items-title2-version`, text: title }),
|
|
38
|
-
React.createElement(AccountButton, { url: '/cart/',
|
|
38
|
+
React.createElement(AccountButton, { url: '/cart/', btnType: `green-small-text`, className: 'cart-items-edit-btn', text: `account.cart_checkout.editCart` }))) : (React.createElement(Text, { className: `account-p ${smallFontSize ? 'account-p2' : 'account-p1'} account-font-bold account-primary-color1 cart-items-title1-version`, text: title })),
|
|
39
39
|
additionalParameters.horizontalLine ? React.createElement("div", { className: `order-items-line` }) : null,
|
|
40
40
|
itemsStore));
|
|
41
41
|
});
|
|
@@ -12,8 +12,8 @@ const StepReview = ({ items }) => {
|
|
|
12
12
|
}, []);
|
|
13
13
|
return (React.createElement("div", { className: 'step-review' },
|
|
14
14
|
React.createElement(SelectAddress, null),
|
|
15
|
-
React.createElement(Payment, { title: 'payment', onClick: handleSelectPopup }),
|
|
16
|
-
React.createElement(SimpleCartItems, { data: items, smallFontSize: true,
|
|
15
|
+
React.createElement(Payment, { title: 'account.payment_management.payment', onClick: handleSelectPopup }),
|
|
16
|
+
React.createElement(SimpleCartItems, { data: items, smallFontSize: true, className: `checkout-mt`, title: 'account.order_management.orderItems', additionalParameters: {
|
|
17
17
|
remove: false,
|
|
18
18
|
select: false,
|
|
19
19
|
horizontalLine: false,
|
|
@@ -4,6 +4,6 @@ import { CustomCheckbox } from '../../../../components';
|
|
|
4
4
|
const StepShipping = ({ firstStepFormRef }) => {
|
|
5
5
|
const [hide, setHide] = useState();
|
|
6
6
|
const { hasAddressType } = useAddressContext();
|
|
7
|
-
return (React.createElement("div", { className: `billing-shipping-form-wrap` }, hasAddressType ? (React.createElement(React.Fragment, null)) : (React.createElement(ShippingBillingForm, { firstStepFormRef: firstStepFormRef, title: 'address' }))));
|
|
7
|
+
return (React.createElement("div", { className: `billing-shipping-form-wrap` }, hasAddressType ? (React.createElement(React.Fragment, null)) : (React.createElement(ShippingBillingForm, { firstStepFormRef: firstStepFormRef, title: 'account.address_management.address' }))));
|
|
8
8
|
};
|
|
9
9
|
export default StepShipping;
|
|
@@ -52,7 +52,7 @@ const CheckoutTemplate = () => {
|
|
|
52
52
|
url: false,
|
|
53
53
|
handleClick: handleCheckoutBtn,
|
|
54
54
|
type: checkStep.isShipping ? 'submit' : 'button',
|
|
55
|
-
text: checkStep.isShipping ? 'proceedToCheckout' : 'proceedToPayment',
|
|
55
|
+
text: checkStep.isShipping ? 'account.cart_checkout.proceedToCheckout' : 'account.cart_checkout.proceedToPayment',
|
|
56
56
|
loadingButton: loadingProcessToPayment,
|
|
57
57
|
} }, !addressLoading && itemsCount ? (React.createElement(React.Fragment, null,
|
|
58
58
|
React.createElement(Sequence, { step: checkStep.isShipping ? 'shipping' : 'review' }),
|
|
@@ -18,10 +18,10 @@ const ThankYouTemplate = ({ orderNumber, thankIcon }) => {
|
|
|
18
18
|
React.createElement(AccountContainer, { className: 'second-version' },
|
|
19
19
|
React.createElement(Sequence, { step: 'confirmed' }),
|
|
20
20
|
React.createElement("div", { className: `confirmation-wrapper` },
|
|
21
|
-
thankIcon
|
|
22
|
-
React.createElement(Text, { tag: `h6`, className: `account-h6 account-font-bold account-primary-color1 title`, text: `confirmMessageTitle` }),
|
|
23
|
-
React.createElement(Text, { tag: `p`, className: `account-p account-p2 account-font-regular account-primary-color1 description`, text: `confirmMessageDesc` }),
|
|
24
|
-
React.createElement(Text, { tag: `p`, className: `account-p account-p2 account-font-regular account-primary-color1 order-number` }, translate('orderNumber') + ':' + ' ' + orderNumber),
|
|
25
|
-
React.createElement(AccountButton, { text: `continueShopping`, btnType: `purple-text`, url: shopUrl }))))));
|
|
21
|
+
thankIcon || React.createElement("div", { className: 'confirmation-image' }, confirmImage),
|
|
22
|
+
React.createElement(Text, { tag: `h6`, className: `account-h6 account-font-bold account-primary-color1 title`, text: `account.order_management.confirmMessageTitle` }),
|
|
23
|
+
React.createElement(Text, { tag: `p`, className: `account-p account-p2 account-font-regular account-primary-color1 description`, text: `account.order_management.confirmMessageDesc` }),
|
|
24
|
+
React.createElement(Text, { tag: `p`, className: `account-p account-p2 account-font-regular account-primary-color1 order-number` }, translate('account.order_management.orderNumber') + ':' + ' ' + orderNumber),
|
|
25
|
+
React.createElement(AccountButton, { text: `account.general_actions.continueShopping`, btnType: `purple-text`, url: shopUrl }))))));
|
|
26
26
|
};
|
|
27
27
|
export default ThankYouTemplate;
|
|
@@ -6,8 +6,8 @@ import EmptyOrdersStyle from './style';
|
|
|
6
6
|
const EmptyOrders = Memo(() => {
|
|
7
7
|
const { shopUrl } = useAccountContext();
|
|
8
8
|
return (React.createElement(EmptyOrdersStyle, { className: 'empty-orders' },
|
|
9
|
-
React.createElement(Text, { tag: `h6`, className: `account-h6 account-font-bold account-primary-color1 empty-orders-title`, text: `emptyTitle` }),
|
|
10
|
-
React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1 empty-orders-description`, text: `emptyDesc` }),
|
|
11
|
-
React.createElement(AccountButton, { text: `shopNow`, btnType: 'purple-text', url: shopUrl })));
|
|
9
|
+
React.createElement(Text, { tag: `h6`, className: `account-h6 account-font-bold account-primary-color1 empty-orders-title`, text: `account.order_balance.emptyTitle` }),
|
|
10
|
+
React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1 empty-orders-description`, text: `account.order_balance.emptyDesc` }),
|
|
11
|
+
React.createElement(AccountButton, { text: `account.general_actions.shopNow`, btnType: 'purple-text', url: shopUrl })));
|
|
12
12
|
});
|
|
13
13
|
export default EmptyOrders;
|
|
@@ -7,41 +7,41 @@ const OrderDetails = memo(({ className, status, date, orderNumber, itemsCount, t
|
|
|
7
7
|
const { translate } = useTranslation();
|
|
8
8
|
const { currency } = useAccountContext();
|
|
9
9
|
return (React.createElement(OrderDetailsStyle, { className: `${className || ''}` },
|
|
10
|
-
React.createElement(Text, { className: `account-p account-p1 account-font-bold account-primary-color1`, text: 'orderDetails' }),
|
|
10
|
+
React.createElement(Text, { className: `account-p account-p1 account-font-bold account-primary-color1`, text: 'account.order_management.orderDetails' }),
|
|
11
11
|
React.createElement("div", { className: `info-space-line` }),
|
|
12
12
|
React.createElement("div", { className: `order-detail-item-wrap` },
|
|
13
13
|
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1` },
|
|
14
|
-
translate('orderStatus'),
|
|
14
|
+
translate('account.order_management.orderStatus'),
|
|
15
15
|
":"),
|
|
16
16
|
React.createElement(OrderStatus, { status: status, className: 'value' })),
|
|
17
17
|
React.createElement("div", { className: `order-detail-item-wrap` },
|
|
18
18
|
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1` },
|
|
19
|
-
translate('orderDate'),
|
|
19
|
+
translate('account.order_management.orderDate'),
|
|
20
20
|
":"),
|
|
21
21
|
React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1 value`, text: date })),
|
|
22
22
|
React.createElement("div", { className: `order-detail-item-wrap` },
|
|
23
23
|
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1` },
|
|
24
|
-
translate('orderNumber'),
|
|
24
|
+
translate('account.order_management.orderNumber'),
|
|
25
25
|
":"),
|
|
26
26
|
React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1 value`, text: orderNumber })),
|
|
27
27
|
React.createElement("div", { className: `order-detail-item-wrap` },
|
|
28
28
|
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1` },
|
|
29
|
-
translate('totalItems'),
|
|
29
|
+
translate('account.order_management.totalItems'),
|
|
30
30
|
":"),
|
|
31
31
|
React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1 value`, text: itemsCount })),
|
|
32
32
|
shippingCost ? (React.createElement("div", { className: `order-detail-item-wrap` },
|
|
33
33
|
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1` },
|
|
34
|
-
translate('shippingCost'),
|
|
34
|
+
translate('account.order_balance.shippingCost'),
|
|
35
35
|
":"),
|
|
36
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1 value`, text: `${shippingCost == 0 ? 'free' : handlePriceCheckFunc(shippingCost, currency)}` }))) : null,
|
|
36
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1 value`, text: `${shippingCost == 0 ? 'account.order_balance.free' : handlePriceCheckFunc(shippingCost, currency)}` }))) : null,
|
|
37
37
|
usedBalance ? (React.createElement("div", { className: `order-detail-item-wrap` },
|
|
38
38
|
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1` },
|
|
39
|
-
translate('usedBalance'),
|
|
39
|
+
translate('account.balance_promotions.usedBalance'),
|
|
40
40
|
":"),
|
|
41
41
|
React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1 value` }, handlePriceCheckFunc(usedBalance, currency)))) : null,
|
|
42
42
|
React.createElement("div", { className: `order-detail-item-wrap` },
|
|
43
43
|
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1` },
|
|
44
|
-
translate('totalPrice'),
|
|
44
|
+
translate('account.order_management.totalPrice'),
|
|
45
45
|
":"),
|
|
46
46
|
React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1 value` }, handlePriceCheckFunc(total, currency)))));
|
|
47
47
|
});
|
|
@@ -18,7 +18,7 @@ const OrderIndividualTemplate = ({ uniqueKey }) => {
|
|
|
18
18
|
}, [uniqueKey]);
|
|
19
19
|
return !loading ? (React.createElement(OrderIndividualTemplateStyle, null,
|
|
20
20
|
React.createElement("div", { className: `order-info-wrap` },
|
|
21
|
-
React.createElement(AccountButton, {
|
|
21
|
+
React.createElement(AccountButton, { btnType: `green-large-text`, url: '/account/order-history/', className: `back-to-list-btn-block`, text: `account.general_actions.backToList` }),
|
|
22
22
|
React.createElement("div", { className: `details-shipping-billing-wrap` },
|
|
23
23
|
React.createElement(OrderDetails, { className: `col-50`, ...data }),
|
|
24
24
|
React.createElement(ShippingBillingInfo, { className: `col-50`, billing_address: data?.billingAddress, shipping_address: data?.shippingAddress })),
|
|
@@ -3,6 +3,6 @@ import { Text } from '@weareconceptstudio/core';
|
|
|
3
3
|
import OrderStatusStyle from './style';
|
|
4
4
|
const OrderStatus = ({ status, className = '' }) => {
|
|
5
5
|
return (React.createElement(OrderStatusStyle, null,
|
|
6
|
-
React.createElement(Text, { className: `account-p account-p4 account-font-bold status-item ${status} ${className}`, text: status })));
|
|
6
|
+
React.createElement(Text, { className: `account-p account-p4 account-font-bold status-item ${status} ${className}`, text: `account.order_management.${status}` })));
|
|
7
7
|
};
|
|
8
8
|
export default OrderStatus;
|
|
@@ -19,12 +19,12 @@ const OrderedItems = ({ data: items, status, dataId }) => {
|
|
|
19
19
|
React.createElement("div", { className: `col-1-right-wrap` },
|
|
20
20
|
React.createElement(AccountButton, { text: item.product.name, btnType: `green-large-text`, className: `ordered-item-title`, onClick: () => handleProductClick(item.product) }),
|
|
21
21
|
item.color ? (React.createElement("div", { className: `right-first-item-wrap` },
|
|
22
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1`, text: `color` }),
|
|
22
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1`, text: `account.general_actions.color` }),
|
|
23
23
|
"\u00A0",
|
|
24
24
|
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1 capitalize`, text: item.color }))) : (React.createElement("div", { className: `right-first-item-wrap` },
|
|
25
25
|
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1`, text: item.product.short_info_1 }))),
|
|
26
26
|
item.size ? (React.createElement("div", { className: `right-second-item-wrap` },
|
|
27
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1`, text: `size` }),
|
|
27
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1`, text: `account.general_actions.size` }),
|
|
28
28
|
"\u00A0",
|
|
29
29
|
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1`, text: item.size }))) : (React.createElement("div", { className: `right-second-item-wrap` },
|
|
30
30
|
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1`, text: item.product.short_info_2 }))))),
|
|
@@ -42,26 +42,26 @@ const OrderedItems = ({ data: items, status, dataId }) => {
|
|
|
42
42
|
React.createElement("div", { className: `mobile-info-wrap` },
|
|
43
43
|
React.createElement(AccountButton, { text: item.product.name, btnType: `green-large-text`, className: `ordered-item-mobile-title`, onClick: () => handleProductClick(item.product) }),
|
|
44
44
|
item.color ? (React.createElement("div", { className: `mobile-info-item` },
|
|
45
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1`, text: `color` }),
|
|
45
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1`, text: `account.general_actions.color` }),
|
|
46
46
|
"\u00A0",
|
|
47
47
|
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1 capitalize`, text: item.color }))) : (React.createElement("div", { className: `mobile-info-item` },
|
|
48
48
|
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1`, text: item.product.short_info_1 }))),
|
|
49
49
|
item.size ? (React.createElement("div", { className: `mobile-info-item` },
|
|
50
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1`, text: `size` }),
|
|
50
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1`, text: `account.general_actions.size` }),
|
|
51
51
|
"\u00A0",
|
|
52
52
|
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1`, text: item.size }))) : (React.createElement("div", { className: `mobile-info-item` },
|
|
53
53
|
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1`, text: item.product.short_info_2 }))),
|
|
54
54
|
React.createElement("div", { className: `mobile-info-item` },
|
|
55
55
|
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1` },
|
|
56
|
-
translate('quantity'),
|
|
56
|
+
translate('account.order_balance.quantity'),
|
|
57
57
|
":"),
|
|
58
58
|
"\u00A0",
|
|
59
59
|
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1`, text: item.qty })),
|
|
60
60
|
React.createElement("div", { className: `mobile-price-wrap nowrap` },
|
|
61
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1 mb-mt`, text: `price` }),
|
|
61
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1 mb-mt`, text: `account.order_balance.price` }),
|
|
62
62
|
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1`, text: handlePriceCheckFunc(item.price, currency) })),
|
|
63
63
|
React.createElement("div", { className: `mobile-total-price-wrap nowrap` },
|
|
64
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1 mb-mt`, text: `total` }),
|
|
64
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1 mb-mt`, text: `account.order_balance.total` }),
|
|
65
65
|
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1`, text: handlePriceCheckFunc(item.total, currency) })))))))
|
|
66
66
|
: null;
|
|
67
67
|
}, [items, currency, winWidth, status, handleProductClick]);
|
|
@@ -70,19 +70,19 @@ const OrderedItems = ({ data: items, status, dataId }) => {
|
|
|
70
70
|
};
|
|
71
71
|
return items?.length > 0 ? (React.createElement(OrderedItemsStyle, { className: `ordered-items-wrapper` },
|
|
72
72
|
React.createElement("div", { className: 'order-flex-block' },
|
|
73
|
-
React.createElement(Text, { className: 'account-p account-p1 account-font-bold account-primary-color1 ', text: 'orderItems' }),
|
|
74
|
-
React.createElement(AccountButton, {
|
|
73
|
+
React.createElement(Text, { className: 'account-p account-p1 account-font-bold account-primary-color1 ', text: 'account.order_management.orderItems' }),
|
|
74
|
+
React.createElement(AccountButton, { onClick: handleReorder, className: 'reorder-btn', text: 'account.order_balance.reorder' })),
|
|
75
75
|
React.createElement("div", { className: 'line' }),
|
|
76
76
|
React.createElement("div", { className: `order-items-table-wrap` },
|
|
77
77
|
React.createElement("div", { className: `titles-wrap` },
|
|
78
78
|
React.createElement("div", { className: `title-wrap tl-col-1` },
|
|
79
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 nowrap`, text: `item` })),
|
|
79
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 nowrap`, text: `account.order_balance.item` })),
|
|
80
80
|
React.createElement("div", { className: `title-wrap tl-col-2` },
|
|
81
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 nowrap`, text: `quantity` })),
|
|
81
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 nowrap`, text: `account.order_balance.quantity` })),
|
|
82
82
|
React.createElement("div", { className: `title-wrap tl-col-3 title-item` },
|
|
83
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 nowrap align-right`, text: `price` })),
|
|
83
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 nowrap align-right`, text: `account.order_balance.price` })),
|
|
84
84
|
React.createElement("div", { className: `title-wrap tl-col-4 title-item` },
|
|
85
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 nowrap align-right`, text: `total` }))),
|
|
85
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 nowrap align-right`, text: `account.order_balance.total` }))),
|
|
86
86
|
React.createElement("div", { className: 'items-wrap' }, storeOrderedItems)))) : null;
|
|
87
87
|
};
|
|
88
88
|
export default OrderedItems;
|
|
@@ -15,6 +15,6 @@ const OrderItem = Memo(({ data, currency }) => {
|
|
|
15
15
|
React.createElement("div", { className: `col-item od-col-5 nowrap` },
|
|
16
16
|
React.createElement(Text, { className: `account-p account-p4 account-font-medium account-primary-color1`, text: handlePriceCheckFunc(data.total, currency) })),
|
|
17
17
|
React.createElement("div", { className: `col-item od-col-6 nowrap` },
|
|
18
|
-
React.createElement(AccountButton, { text: 'viewOrder', btnType: `green-small-text`, url: `/account/order-history/${data.id}` }))));
|
|
18
|
+
React.createElement(AccountButton, { text: 'account.order_management.viewOrder', btnType: `green-small-text`, url: `/account/order-history/${data.id}` }))));
|
|
19
19
|
});
|
|
20
20
|
export default OrderItem;
|
|
@@ -34,15 +34,15 @@ const OrdersList = () => {
|
|
|
34
34
|
return winWidth >= 768 ? (React.createElement("div", { className: `order-table-wrap` },
|
|
35
35
|
React.createElement("div", { className: `order-table-titles-wrap` },
|
|
36
36
|
React.createElement("div", { className: `order-table-title-wrap od-col-1` },
|
|
37
|
-
React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1 nowrap`, text: `orderDate` })),
|
|
37
|
+
React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1 nowrap`, text: `account.order_management.orderDate` })),
|
|
38
38
|
React.createElement("div", { className: `order-table-title-wrap od-col-2` },
|
|
39
|
-
React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1 nowrap`, text: `totalItems` })),
|
|
39
|
+
React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1 nowrap`, text: `account.order_management.totalItems` })),
|
|
40
40
|
React.createElement("div", { className: `order-table-title-wrap od-col-3` },
|
|
41
|
-
React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1 nowrap`, text: `orderNumber` })),
|
|
41
|
+
React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1 nowrap`, text: `account.order_management.orderNumber` })),
|
|
42
42
|
React.createElement("div", { className: `order-table-title-wrap od-col-4` },
|
|
43
|
-
React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1 nowrap`, text: `orderStatus` })),
|
|
43
|
+
React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1 nowrap`, text: `account.order_management.orderStatus` })),
|
|
44
44
|
React.createElement("div", { className: `order-table-title-wrap od-col-5` },
|
|
45
|
-
React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1 nowrap align-right`, text: `totalPrice` })),
|
|
45
|
+
React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1 nowrap align-right`, text: `account.order_management.totalPrice` })),
|
|
46
46
|
React.createElement("div", { className: `order-table-title-wrap od-col-6` })),
|
|
47
47
|
React.createElement("div", { className: `order-table-items-wrap` }, data.map((item, index) => {
|
|
48
48
|
return (React.createElement(OrderItem, { key: index, data: item, currency: currency }));
|
|
@@ -51,27 +51,35 @@ const OrdersList = () => {
|
|
|
51
51
|
React.createElement("div", { className: `first-col-wrap` },
|
|
52
52
|
React.createElement("div", { className: `left-wrap` },
|
|
53
53
|
React.createElement("div", { className: `left-item-wrap` },
|
|
54
|
-
React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1
|
|
54
|
+
React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1` },
|
|
55
|
+
translate('account.order_management.orderDate'),
|
|
56
|
+
":"),
|
|
55
57
|
React.createElement(Text, { className: `account-p account-p4 account-font-regular account-primary-color1 value`, text: item.date })),
|
|
56
58
|
React.createElement("div", { className: `left-item-wrap last` },
|
|
57
|
-
React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1
|
|
59
|
+
React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1` },
|
|
60
|
+
translate('account.order_management.orderNumber'),
|
|
61
|
+
":"),
|
|
58
62
|
React.createElement(Text, { className: `account-p account-p4 account-font-regular account-primary-color1 value`, text: `ID ${item.orderNumber}` }))),
|
|
59
63
|
React.createElement("div", { className: `right-wrap` },
|
|
60
64
|
React.createElement(OrderStatus, { status: item.status }))),
|
|
61
65
|
React.createElement("div", { className: `last-col-wrap` },
|
|
62
66
|
React.createElement("div", { className: `left-wrap` },
|
|
63
67
|
React.createElement("div", { className: `left-item-wrap` },
|
|
64
|
-
React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1
|
|
68
|
+
React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1` },
|
|
69
|
+
translate('account.order_management.totalItems'),
|
|
70
|
+
":"),
|
|
65
71
|
React.createElement(Text, { className: `account-p account-p4 account-font-regular account-primary-color1 value`, text: item.itemsCount })),
|
|
66
72
|
React.createElement("div", { className: `left-item-wrap last` },
|
|
67
|
-
React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1
|
|
73
|
+
React.createElement(Text, { className: `account-p account-p4 account-font-bold account-primary-color1` },
|
|
74
|
+
translate('account.order_management.totalPrice'),
|
|
75
|
+
":"),
|
|
68
76
|
React.createElement(Text, { className: `account-p account-p4 account-font-regular account-primary-color1 value`, text: handlePriceCheckFunc(item.total, currency) }))),
|
|
69
77
|
React.createElement("div", { className: `right-wrap` },
|
|
70
|
-
React.createElement(AccountButton, { text: 'viewOrder', btnType: `green-small-text`, url: `/account/order-history/${item.id}` })))));
|
|
78
|
+
React.createElement(AccountButton, { text: 'account.order_management.viewOrder', btnType: `green-small-text`, url: `/account/order-history/${item.id}` })))));
|
|
71
79
|
})));
|
|
72
80
|
}, [winWidth, data]);
|
|
73
81
|
return !loading && data.length > 0 ? (React.createElement(OrdersListStyle, null,
|
|
74
|
-
React.createElement(Text, { className: `account-p account-p1 account-font-bold account-primary-color1`, text: 'orderHistory' }),
|
|
82
|
+
React.createElement(Text, { className: `account-p account-p1 account-font-bold account-primary-color1`, text: 'account.account_info.orderHistory' }),
|
|
75
83
|
React.createElement("div", { className: `order-history-line` }),
|
|
76
84
|
listStore,
|
|
77
85
|
React.createElement("div", { className: `pagination-wrap` },
|
|
@@ -19,6 +19,6 @@ const AddNewCard = ({ className }) => {
|
|
|
19
19
|
React.createElement("div", { className: 'account-card-add-icon' }, popupCardSVG),
|
|
20
20
|
React.createElement(Text, { className: `account-add-card-text account-p account-p3 account-font-medium account-primary-color1` },
|
|
21
21
|
"+ ",
|
|
22
|
-
translate('addNewCard')))));
|
|
22
|
+
translate('account.payment_management.addNewCard')))));
|
|
23
23
|
};
|
|
24
24
|
export default AddNewCard;
|
|
@@ -12,7 +12,7 @@ const Card = ({ cardOption, className, selectedPayment, setSelectedPayment, dele
|
|
|
12
12
|
const { isCheckoutPage } = useCheckoutContext();
|
|
13
13
|
//! Handle Popups
|
|
14
14
|
const handleDeletePopup = useCallback(() => {
|
|
15
|
-
openPopup(React.createElement(WarningMessageForPopup, { isDelete: true, title: 'deleteCardMessage', description: 'confirmDeleteCard', onRemove: () => deleteCard(cardOption.id) }), {
|
|
15
|
+
openPopup(React.createElement(WarningMessageForPopup, { isDelete: true, title: 'account.payment_management.deleteCardMessage', description: 'account.payment_management.confirmDeleteCard', onRemove: () => deleteCard(cardOption.id) }), {
|
|
16
16
|
className: 'messagePopup',
|
|
17
17
|
accountIcon: true,
|
|
18
18
|
});
|
|
@@ -27,7 +27,7 @@ const Card = ({ cardOption, className, selectedPayment, setSelectedPayment, dele
|
|
|
27
27
|
React.createElement(Text, { className: `card-full-name account-p account-p3 account-font-regular`, text: cardOption.name }),
|
|
28
28
|
React.createElement(Text, { className: `card-number account-p account-p1 account-font-regular`, text: cardOption.number })),
|
|
29
29
|
React.createElement("div", { className: `card-wrap-bottom` },
|
|
30
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-regular`, text: cardOption.is_expired ? 'cardExpired' : `Exp. Date ${cardOption.exp_date}` }),
|
|
31
|
-
!isCheckoutPage && selectedPayment != cardOption.id ? (React.createElement(AccountButton, { text: `remove`, onClick: handleDeletePopup, btnType: `green-small-text`, className: `account-card-remove-btn account-p account-p3 account-font-regular` })) : null)));
|
|
30
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-regular`, text: cardOption.is_expired ? 'account.payment_management.cardExpired' : `Exp. Date ${cardOption.exp_date}` }),
|
|
31
|
+
!isCheckoutPage && selectedPayment != cardOption.id ? (React.createElement(AccountButton, { text: `account.general_actions.remove`, onClick: handleDeletePopup, btnType: `green-small-text`, className: `account-card-remove-btn account-p account-p3 account-font-regular` })) : null)));
|
|
32
32
|
};
|
|
33
33
|
export default Card;
|
|
@@ -18,7 +18,7 @@ const Payment = ({ title, onClick, className }) => {
|
|
|
18
18
|
return (React.createElement(PaymentStyle, { className: `item-container ${className || ''}` },
|
|
19
19
|
React.createElement("div", { className: `change-payment-wrap` },
|
|
20
20
|
React.createElement(Text, { className: `account-p account-p2 account-font-bold account-primary-color1`, text: title }),
|
|
21
|
-
user.payment_method && (React.createElement(AccountButton, {
|
|
21
|
+
user.payment_method && (React.createElement(AccountButton, { onClick: onClick, btnType: `green-small-text`, text: `account.general_actions.change` }))),
|
|
22
22
|
user.payment_method ? (React.createElement(SelectedPayment, null)) : (React.createElement(PaymentMethods, { selectedPayment: checkoutData.paymentType, setSelectedPayment: setSelectedPayment }))));
|
|
23
23
|
};
|
|
24
24
|
export default Payment;
|
|
@@ -23,6 +23,6 @@ const PaymentMethodItem = ({ item, selectedPayment, setSelectedPayment, singlePa
|
|
|
23
23
|
React.createElement("path", { d: 'M13.345 30.462c-1.062 0-1.859-0.531-2.39-1.328l-9.56-16.996c-0.797-1.328-0.266-2.921 1.062-3.718 1.328-0.531 2.921 0 3.718 1.328l7.436 13.012 12.481-20.183c0.797-1.328 2.39-1.593 3.718-0.797s1.593 2.39 0.797 3.718l-14.871 23.635c-0.531 0.797-1.328 1.328-2.39 1.328z' })))),
|
|
24
24
|
isCardType && singlePayment && (React.createElement("div", { className: 'card-details' },
|
|
25
25
|
React.createElement("span", { className: 'card-number' }, item.card.short_number),
|
|
26
|
-
item.card.is_expired ? (React.createElement(Text, { tag: 'span', className: 'card-exp-date', text: 'cardExpired' })) : null))));
|
|
26
|
+
item.card.is_expired ? (React.createElement(Text, { tag: 'span', className: 'card-exp-date', text: 'account.payment_management.cardExpired' })) : null))));
|
|
27
27
|
};
|
|
28
28
|
export default PaymentMethodItem;
|
|
@@ -5,7 +5,7 @@ import PaymentStyle from './style';
|
|
|
5
5
|
const PaymentMethodsTemplate = () => {
|
|
6
6
|
return (React.createElement(PaymentStyle, null,
|
|
7
7
|
React.createElement("div", { className: 'account-payment-block' },
|
|
8
|
-
React.createElement(Text, { tag: `h6`, className: `account-font-medium account-primary-color1 title`, text: `myCards` }),
|
|
8
|
+
React.createElement(Text, { tag: `h6`, className: `account-font-medium account-primary-color1 title`, text: `account.payment_management.myCards` }),
|
|
9
9
|
React.createElement(Cards, null))));
|
|
10
10
|
};
|
|
11
11
|
export default PaymentMethodsTemplate;
|
|
@@ -16,10 +16,10 @@ const SelectPaymentMethodPopup = () => {
|
|
|
16
16
|
};
|
|
17
17
|
return (React.createElement(SelectPaymentMethodPopupStyle, null,
|
|
18
18
|
React.createElement("div", { className: `select-payment-wrap` },
|
|
19
|
-
React.createElement(Text, { tag: `h6`, className: 'account-p account-p2 account-font-bold account-primary-color1', text: 'selectPaymentMethod' })),
|
|
19
|
+
React.createElement(Text, { tag: `h6`, className: 'account-p account-p2 account-font-bold account-primary-color1', text: 'account.payment_management.selectPaymentMethod' })),
|
|
20
20
|
React.createElement(PaymentWrap, { selectedPayment: selectedPayment, setSelectedPayment: setSelectedPayment }),
|
|
21
21
|
React.createElement("div", { className: `cancel-and-save-wrap` },
|
|
22
|
-
React.createElement(AccountButton, { btnType: `green-large-text`, text: `cancel
|
|
23
|
-
React.createElement(AccountButton, { btnType: `full-width`, text: `saveAndApply
|
|
22
|
+
React.createElement(AccountButton, { onClick: closePopup, btnType: `green-large-text`, text: `account.general_actions.cancel` }),
|
|
23
|
+
React.createElement(AccountButton, { btnType: `full-width`, onClick: handlePaymentMethodChangeSubmit, text: `account.general_actions.saveAndApply` }))));
|
|
24
24
|
};
|
|
25
25
|
export default SelectPaymentMethodPopup;
|