Skip to content

Commit de2c99a

Browse files
committed
Update SingleProduct.component.tsx
1 parent a2978d9 commit de2c99a

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

src/components/Product/SingleProduct.component.tsx

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3,48 +3,6 @@ import { filteredVariantPrice, paddedPrice } from '@/utils/functions/functions';
33
import AddToCart, { IProductRootObject } from './AddToCart.component';
44
import LoadingSpinner from '@/components/LoadingSpinner/LoadingSpinner.component';
55

6-
interface IImage {
7-
__typename: string;
8-
id: string;
9-
uri: string;
10-
title: string;
11-
srcSet: string;
12-
sourceUrl: string;
13-
}
14-
15-
interface IVariationNode {
16-
__typename: string;
17-
name: string;
18-
}
19-
20-
interface IAllPaColors {
21-
__typename: string;
22-
nodes: IVariationNode[];
23-
}
24-
25-
interface IAllPaSizes {
26-
__typename: string;
27-
nodes: IVariationNode[];
28-
}
29-
30-
interface IVariationNodes {
31-
__typename: string;
32-
id: string;
33-
databaseId: number;
34-
name: string;
35-
stockStatus: string;
36-
stockQuantity: number;
37-
purchasable: boolean;
38-
onSale: boolean;
39-
salePrice?: string;
40-
regularPrice: string;
41-
}
42-
43-
interface IVariations {
44-
__typename: string;
45-
nodes: IVariationNodes[];
46-
}
47-
486
const SingleProduct: React.FC<IProductRootObject> = ({ product }) => {
497
const [isLoading, setIsLoading] = useState<boolean>(true);
508
const [selectedVariation, setSelectedVariation] = useState<

0 commit comments

Comments
 (0)