Skip to content

Commit ed3e3bf

Browse files
committed
perf: upgrade to react-components v3 without cities.json
1 parent adef75a commit ed3e3bf

14 files changed

Lines changed: 120 additions & 31 deletions

File tree

components/composite/OrderSummary/CouponOrGiftCard/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
GiftCardOrCouponSubmit,
44
GiftCardOrCouponForm,
55
} from "@commercelayer/react-components"
6-
import { ErrorComponentProps } from "@commercelayer/react-components/lib/esm/typings/errors"
6+
import { ErrorComponentProps } from "@commercelayer/react-components/lib/typings/errors"
77
import { useContext, useState } from "react"
88
import { useTranslation } from "react-i18next"
99

components/composite/OrderSummary/LineItemTypes/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
LineItemOption,
99
LineItemCode,
1010
} from "@commercelayer/react-components"
11-
import { LineItemType } from "@commercelayer/react-components/lib/esm/typings"
11+
import { LineItemType } from "@commercelayer/react-components/lib/typings"
1212
import { useTranslation } from "react-i18next"
1313
import styled from "styled-components"
1414
import tw from "twin.macro"

components/composite/StepCustomer/AddressInputGroup/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import {
99
AddressInputName,
1010
AddressStateSelectName,
1111
BaseInputType,
12-
} from "@commercelayer/react-components/lib/esm/typings"
12+
} from "@commercelayer/react-components/lib/typings"
1313
import {
1414
ErrorComponentProps,
1515
ResourceErrorType,
16-
} from "@commercelayer/react-components/lib/esm/typings/errors"
16+
} from "@commercelayer/react-components/lib/typings/errors"
1717
import { useContext, useEffect, useState } from "react"
1818
import { useTranslation } from "react-i18next"
1919
import styled from "styled-components"

components/composite/StepCustomer/AddressSectionEmail/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { CustomerInput, Errors } from "@commercelayer/react-components"
2-
import { ErrorComponentProps } from "@commercelayer/react-components/lib/esm/typings/errors"
2+
import { ErrorComponentProps } from "@commercelayer/react-components/lib/typings/errors"
33
import { useTranslation } from "react-i18next"
44
import styled from "styled-components"
55
import tw from "twin.macro"

components/composite/StepPayment/CheckoutCustomerPayment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
PaymentMethod,
44
PaymentSource,
55
} from "@commercelayer/react-components"
6-
import { CustomerSaveToWalletProps } from "@commercelayer/react-components/lib/esm/components/PaymentSource"
6+
import { CustomerSaveToWalletProps } from "@commercelayer/react-components/lib/components/PaymentSource"
77
import { MouseEvent, useState } from "react"
88
import { useTranslation } from "react-i18next"
99
import "twin.macro"

components/composite/StepPlaceOrder/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { PlaceOrderContainer } from "@commercelayer/react-components"
2-
import { ErrorComponentProps } from "@commercelayer/react-components/lib/esm/typings/errors"
2+
import { ErrorComponentProps } from "@commercelayer/react-components/lib/typings/errors"
33
import { useRouter } from "next/router"
44
import { useContext, useState } from "react"
55
import { Trans, useTranslation } from "react-i18next"

components/composite/StepShipping/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
DeliveryLeadTime,
1515
ShipmentField,
1616
} from "@commercelayer/react-components"
17-
import { LineItemType } from "@commercelayer/react-components/lib/esm/typings"
17+
import { LineItemType } from "@commercelayer/react-components/lib/typings"
1818
import { ShippingMethod as ShippingMethodCollection } from "@commercelayer/sdk"
1919
import classNames from "classnames"
2020
import { useTranslation, Trans } from "next-i18next"

components/data/AppProvider/fetchOrderById.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TypeAccepted } from "@commercelayer/react-components/lib/esm/utils/getLineItemsCount"
1+
import { TypeAccepted } from "@commercelayer/react-components/lib/utils/getLineItemsCount"
22
import CommerceLayer, {
33
Order,
44
Address,

components/data/GTMProvider/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TypeAccepted } from "@commercelayer/react-components/lib/esm/utils/getLineItemsCount"
1+
import { TypeAccepted } from "@commercelayer/react-components/lib/utils/getLineItemsCount"
22
import CommerceLayer, { LineItem } from "@commercelayer/sdk"
33
import { createContext, useEffect, useContext } from "react"
44
import TagManager from "react-gtm-module"

components/utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TypeAccepted } from "@commercelayer/react-components/lib/esm/utils/getLineItemsCount"
1+
import { TypeAccepted } from "@commercelayer/react-components/lib/utils/getLineItemsCount"
22

33
export const LINE_ITEMS_SHIPPABLE: TypeAccepted[] = ["skus", "bundles"]
44
export const LINE_ITEMS_SHOPPABLE: TypeAccepted[] = [

0 commit comments

Comments
 (0)