Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
fix: cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
federicobadini committed Mar 21, 2023
1 parent 03be51e commit ef2ba3d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 16 deletions.
9 changes: 9 additions & 0 deletions frontend/lib/strapi-sdk/generated/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,12 @@ export type ComponentProductListBanner = {
url: Scalars['String'];
};

export type ComponentProductListFeaturedProductList = {
__typename?: 'ComponentProductListFeaturedProductList';
id: Scalars['ID'];
productList?: Maybe<ProductListEntityResponse>;
};

export type ComponentProductListLinkedProductListSet = {
__typename?: 'ComponentProductListLinkedProductListSet';
id: Scalars['ID'];
Expand Down Expand Up @@ -561,6 +567,7 @@ export type GenericMorph =
| ComponentPageStats
| ComponentProductCrossSell
| ComponentProductListBanner
| ComponentProductListFeaturedProductList
| ComponentProductListLinkedProductListSet
| ComponentProductListRelatedPosts
| ComponentProductProduct
Expand Down Expand Up @@ -1356,6 +1363,7 @@ export type ProductListRelationResponseCollection = {

export type ProductListSectionsDynamicZone =
| ComponentProductListBanner
| ComponentProductListFeaturedProductList
| ComponentProductListLinkedProductListSet
| ComponentProductListRelatedPosts
| Error;
Expand Down Expand Up @@ -3463,6 +3471,7 @@ export type GetProductListQuery = {
callToActionLabel: string;
url: string;
}
| { __typename: 'ComponentProductListFeaturedProductList' }
| {
__typename: 'ComponentProductListLinkedProductListSet';
id: string;
Expand Down
1 change: 0 additions & 1 deletion frontend/models/product-list/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export {
FacetWidgetType,
} from './types';
export type {
FeaturedProductList,
iFixitPage,
ProductList,
ProductListPreview,
Expand Down
14 changes: 0 additions & 14 deletions frontend/models/product-list/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,20 +155,6 @@ export interface ProductListRelatedPostsSection {
tags: string | null;
}

export interface FeaturedProductList {
algolia: {
apiKey: string;
indexName: string;
};
handle: string;
title: string;
type: ProductListType;
deviceTitle: string | null;
description: string;
image: ProductListImage | null;
filters: string | null;
}

export interface ProductListProductListSetSection {
type: ProductListSectionType.ProductListSet;
id: string;
Expand Down
2 changes: 1 addition & 1 deletion frontend/templates/product-list/ProductListView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { VStack } from '@chakra-ui/react';
import { computeProductListAlgoliaFilterPreset } from '@helpers/product-list-helpers';
import { Wrapper } from '@ifixit/ui';
import { ProductList, ProductListSectionType } from '@models/product-list';
import { Configure, Index } from 'react-instantsearch-hooks-web';
import { Configure } from 'react-instantsearch-hooks-web';
import { MetaTags } from './MetaTags';
import { SecondaryNavigation } from './SecondaryNavigation';
import {
Expand Down

0 comments on commit ef2ba3d

Please sign in to comment.