From 452e06d5b587e8443270bb23562cef199eccc305 Mon Sep 17 00:00:00 2001 From: Paul Hachmang Date: Fri, 6 Dec 2024 17:01:31 +0100 Subject: [PATCH] Cleanup types --- .../components/ProductListLayout/types.tsx | 10 +++++----- examples/magento-graphcms/components/theme.ts | 1 - .../components/ProductListLayout/types.tsx | 10 +++++----- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/examples/magento-graphcms/components/ProductListLayout/types.tsx b/examples/magento-graphcms/components/ProductListLayout/types.tsx index caff5ff787..d44562ec2b 100644 --- a/examples/magento-graphcms/components/ProductListLayout/types.tsx +++ b/examples/magento-graphcms/components/ProductListLayout/types.tsx @@ -1,5 +1,5 @@ -import { MenuQueryFragment } from '@graphcommerce/magento-category' -import { +import type { MenuQueryFragment } from '@graphcommerce/magento-category' +import type { CategoryDefaultFragment, ColumnsConfig, FilterTypes, @@ -8,10 +8,10 @@ import { ProductListQuery, useProductList, } from '@graphcommerce/magento-product' -import { CategoryPageQuery } from '../../graphql/CategoryPage.gql' +import { responsiveVal, useContainerSizing } from '@graphcommerce/next-ui' import { useTheme } from '@mui/material' -import { useContainerSizing, responsiveVal } from '@graphcommerce/next-ui' -import { Breakpoint } from '@mui/material' +import type { Breakpoint } from '@mui/material' +import type { CategoryPageQuery } from '../../graphql/CategoryPage.gql' type BaseProps = MenuQueryFragment & ProductListQuery & diff --git a/examples/magento-graphcms/components/theme.ts b/examples/magento-graphcms/components/theme.ts index e1d5458ee4..08a53157a1 100644 --- a/examples/magento-graphcms/components/theme.ts +++ b/examples/magento-graphcms/components/theme.ts @@ -2,7 +2,6 @@ import { breakpointVal, - containerSizing, MuiButtonInline, MuiButtonPill, MuiButtonResponsive, diff --git a/examples/magento-open-source/components/ProductListLayout/types.tsx b/examples/magento-open-source/components/ProductListLayout/types.tsx index caff5ff787..d44562ec2b 100644 --- a/examples/magento-open-source/components/ProductListLayout/types.tsx +++ b/examples/magento-open-source/components/ProductListLayout/types.tsx @@ -1,5 +1,5 @@ -import { MenuQueryFragment } from '@graphcommerce/magento-category' -import { +import type { MenuQueryFragment } from '@graphcommerce/magento-category' +import type { CategoryDefaultFragment, ColumnsConfig, FilterTypes, @@ -8,10 +8,10 @@ import { ProductListQuery, useProductList, } from '@graphcommerce/magento-product' -import { CategoryPageQuery } from '../../graphql/CategoryPage.gql' +import { responsiveVal, useContainerSizing } from '@graphcommerce/next-ui' import { useTheme } from '@mui/material' -import { useContainerSizing, responsiveVal } from '@graphcommerce/next-ui' -import { Breakpoint } from '@mui/material' +import type { Breakpoint } from '@mui/material' +import type { CategoryPageQuery } from '../../graphql/CategoryPage.gql' type BaseProps = MenuQueryFragment & ProductListQuery &