Skip to content

Commit 5f4b410

Browse files
committed
refactor: move create elastic path client into lib
1 parent 9a2b9de commit 5f4b410

File tree

27 files changed

+50
-29
lines changed

27 files changed

+50
-29
lines changed

examples/simple/src/app/(auth)/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { ACCOUNT_MEMBER_TOKEN_COOKIE_NAME } from "../../lib/cookie-constants";
77
import { retrieveAccountMemberCredentials } from "../../lib/retrieve-account-member-credentials";
88
import { revalidatePath, revalidateTag } from "next/cache";
99
import { getErrorMessage } from "../../lib/get-error-message";
10-
import { createElasticPathClient } from "../(store)/membership/create-elastic-path-client";
10+
import { createElasticPathClient } from "../../lib/create-elastic-path-client";
1111
import { postV2AccountMembersTokens } from "@epcc-sdk/sdks-shopper";
1212
import { createCookieFromGenerateTokenResponse } from "../../lib/create-cookie-from-generate-token-response";
1313

examples/simple/src/app/(auth)/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ReactNode } from "react";
33
import { getStoreInitialState } from "../../lib/get-store-initial-state";
44
import { Providers } from "../providers";
55
import clsx from "clsx";
6-
import { createElasticPathClient } from "../(store)/membership/create-elastic-path-client";
6+
import { createElasticPathClient } from "../../lib/create-elastic-path-client";
77

88
const SITE_NAME = process.env.NEXT_PUBLIC_SITE_NAME;
99
const baseUrl = process.env.NEXT_PUBLIC_VERCEL_URL

examples/simple/src/app/(checkout)/checkout/AccountCheckout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
getV2AccountMembersAccountMemberId,
1010
ResponseCurrency,
1111
} from "@epcc-sdk/sdks-shopper";
12-
import { createElasticPathClient } from "../../(store)/membership/create-elastic-path-client";
12+
import { createElasticPathClient } from "../../../lib/create-elastic-path-client";
1313
import { getCart } from "@epcc-sdk/sdks-shopper";
1414
import { TAGS } from "../../../lib/constants";
1515
import { AccountCheckoutForm } from "./AccoutCheckoutForm";

examples/simple/src/app/(checkout)/checkout/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
CheckoutForm,
77
checkoutFormSchema,
88
} from "../../../components/checkout/form-schema/checkout-form-schema";
9-
import { createElasticPathClient } from "../../(store)/membership/create-elastic-path-client";
9+
import { createElasticPathClient } from "../../../lib/create-elastic-path-client";
1010
import {
1111
manageCarts,
1212
checkoutApi,

examples/simple/src/app/(checkout)/checkout/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { cookies } from "next/headers";
66
import { notFound } from "next/navigation";
77
import { CheckoutViews } from "./CheckoutViews";
88
import { getAllCurrencies, getCart } from "@epcc-sdk/sdks-shopper";
9-
import { createElasticPathClient } from "../../(store)/membership/create-elastic-path-client";
9+
import { createElasticPathClient } from "../../../lib/create-elastic-path-client";
1010
import { OrderConfirmationProvider } from "./OrderConfirmationProvider";
1111
import { TAGS } from "../../../lib/constants";
1212
import { isAccountAuthenticated } from "@epcc-sdk/sdks-nextjs";

examples/simple/src/app/(checkout)/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ReactNode } from "react";
33
import { getStoreInitialState } from "../../lib/get-store-initial-state";
44
import { Providers } from "../providers";
55
import clsx from "clsx";
6-
import { createElasticPathClient } from "../(store)/membership/create-elastic-path-client";
6+
import { createElasticPathClient } from "../../lib/create-elastic-path-client";
77

88
const SITE_NAME = process.env.NEXT_PUBLIC_SITE_NAME;
99
const baseUrl = process.env.NEXT_PUBLIC_VERCEL_URL

examples/simple/src/app/(store)/account/addresses/[addressId]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { ArrowLeftIcon } from "@heroicons/react/24/outline";
1111
import React from "react";
1212
import { Separator } from "../../../../../components/separator/Separator";
1313
import { UpdateForm } from "./UpdateForm";
14-
import { createElasticPathClient } from "../../../membership/create-elastic-path-client";
14+
import { createElasticPathClient } from "../../../../../lib/create-elastic-path-client";
1515
import { getV2AccountAddress } from "@epcc-sdk/sdks-shopper";
1616

1717
export const dynamic = "force-dynamic";

examples/simple/src/app/(store)/account/addresses/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { ACCOUNT_MEMBER_TOKEN_COOKIE_NAME } from "../../../../lib/cookie-constan
1010
import { revalidatePath, revalidateTag } from "next/cache";
1111
import { shippingAddressSchema } from "../../../../components/checkout/form-schema/checkout-form-schema";
1212
import { redirect } from "next/navigation";
13-
import { createElasticPathClient } from "../../membership/create-elastic-path-client";
13+
import { createElasticPathClient } from "../../../../lib/create-elastic-path-client";
1414
import {
1515
deleteV2AccountAddress,
1616
postV2AccountAddress,

examples/simple/src/app/(store)/account/addresses/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { Button } from "../../../../components/button/Button";
1111
import { Separator } from "../../../../components/separator/Separator";
1212
import React from "react";
1313
import { DeleteAddressBtn } from "./DeleteAddressBtn";
14-
import { createElasticPathClient } from "../../membership/create-elastic-path-client";
14+
import { createElasticPathClient } from "../../../../lib/create-elastic-path-client";
1515
import { getV2AccountAddresses } from "@epcc-sdk/sdks-shopper";
1616
import { TAGS } from "../../../../lib/constants";
1717

examples/simple/src/app/(store)/account/orders/[orderId]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { ArrowLeftIcon } from "@heroicons/react/24/outline";
77
import Link from "next/link";
88
import { formatIsoDateString } from "../../../../../lib/format-iso-date-string";
99
import { OrderLineItem } from "./OrderLineItem";
10-
import { createElasticPathClient } from "../../../membership/create-elastic-path-client";
10+
import { createElasticPathClient } from "../../../../../lib/create-elastic-path-client";
1111
import {
1212
getAnOrder,
1313
CartItemsObjectResponse,

0 commit comments

Comments
 (0)