Skip to content

Commit c68e7dc

Browse files
committed
♻️ refactor(HostedCart): clean imports and remove stale biome comment
1 parent 5e4a008 commit c68e7dc

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

packages/react-components/src/components/orders/HostedCart.tsx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
import CommerceLayerContext from "#context/CommerceLayerContext"
2-
import OrderContext from "#context/OrderContext"
3-
import OrderStorageContext from "#context/OrderStorageContext"
4-
import { getApplicationLink } from "#utils/getApplicationLink"
5-
import { getDomain } from "#utils/getDomain"
6-
import useCustomContext from "#utils/hooks/useCustomContext"
1+
import type { Order } from "@commercelayer/sdk"
2+
import { iframeResizer } from "iframe-resizer"
73
import {
84
type CSSProperties,
5+
type JSX,
96
useContext,
107
useEffect,
11-
useState,
128
useRef,
13-
type JSX,
9+
useState,
1410
} from "react"
15-
import { iframeResizer } from "iframe-resizer"
16-
import type { Order } from "@commercelayer/sdk"
11+
import CommerceLayerContext from "#context/CommerceLayerContext"
12+
import OrderContext from "#context/OrderContext"
13+
import OrderStorageContext from "#context/OrderStorageContext"
1714
import { subscribe, unsubscribe } from "#utils/events"
15+
import { getApplicationLink } from "#utils/getApplicationLink"
16+
import { getDomain } from "#utils/getDomain"
17+
import useCustomContext from "#utils/hooks/useCustomContext"
1818
import { getOrganizationConfig } from "#utils/organization"
1919

2020
interface IframeData {
@@ -283,7 +283,6 @@ export function HostedCart({
283283
return (): void => {
284284
ignore = true
285285
if (openAdd && type === "mini") {
286-
// biome-ignore lint/suspicious/noEmptyBlockStatements: <explanation>
287286
unsubscribe("open-cart", () => {})
288287
}
289288
}

0 commit comments

Comments
 (0)