@weareconceptstudio/account 0.3.6 → 0.3.7

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.
@@ -1,3 +1,5 @@
1
1
  export default CommentComp;
2
- declare function CommentComp(): React.JSX.Element;
2
+ declare function CommentComp({ fillCheckoutData }: {
3
+ fillCheckoutData: any;
4
+ }): React.JSX.Element;
3
5
  import React from 'react';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { CollapseContainer, CollapseItem, Text } from '@weareconceptstudio/core';
3
3
  import { Input } from '@weareconceptstudio/form';
4
4
  import CommentCompStyle from './style';
5
- const CommentComp = () => {
5
+ const CommentComp = ({ fillCheckoutData }) => {
6
6
  return (React.createElement(CommentCompStyle, { className: 'collapse-distance' },
7
7
  React.createElement(CollapseContainer, null,
8
8
  React.createElement(CollapseItem, { status: 'open', title: React.createElement(React.Fragment, null,
@@ -11,6 +11,6 @@ const ShippingBillingInfo = memo(({ className, shipping_address, billing_address
11
11
  React.createElement("div", { className: `info-space-line` }),
12
12
  React.createElement("div", { className: `info-wrap shipped` },
13
13
  React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 value`, text: `shippedTo` }),
14
- shipping_address.map((item) => (React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1 nowrap`, text: item }))))));
14
+ shipping_address.map((item, index) => (React.createElement(Text, { key: index, className: `account-p account-p3 account-font-regular account-primary-color1 nowrap`, text: item }))))));
15
15
  });
16
16
  export default ShippingBillingInfo;
@@ -11,7 +11,7 @@ const CartItems = memo(({ data, className, title, smallFontSize, additionalParam
11
11
  const { winWidth } = useUi();
12
12
  const { maxQty, currency } = useAccountContext();
13
13
  //! Store
14
- const orderStore = useMemo(() => {
14
+ const itemsStore = useMemo(() => {
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` },
@@ -37,6 +37,6 @@ const CartItems = memo(({ data, className, title, smallFontSize, additionalParam
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
38
  React.createElement(AccountButton, { url: '/cart/', text: `editCart`, btnType: `green-small-text`, className: 'cart-items-edit-btn' }))) : (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
- orderStore));
40
+ itemsStore));
41
41
  });
42
42
  export default CartItems;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { useMemo } from 'react';
2
2
  import { useAccountContext } from '../../../AccountProvider';
3
3
  //* Components
4
4
  import PaymentMethodItem from '../PaymentMethodItem';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weareconceptstudio/account",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "Concept Studio Account",
5
5
  "author": "Concept Studio",
6
6
  "license": "ISC",