File tree Expand file tree Collapse file tree
packages/react-components/src/components/orders Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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"
73import {
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"
1714import { subscribe , unsubscribe } from "#utils/events"
15+ import { getApplicationLink } from "#utils/getApplicationLink"
16+ import { getDomain } from "#utils/getDomain"
17+ import useCustomContext from "#utils/hooks/useCustomContext"
1818import { getOrganizationConfig } from "#utils/organization"
1919
2020interface 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 }
You can’t perform that action at this time.
0 commit comments