diff --git a/components/ui/index.ts b/components/ui/index.ts
index 1e5ad510b..531a3bd28 100644
--- a/components/ui/index.ts
+++ b/components/ui/index.ts
@@ -2,4 +2,3 @@ export { default as Button } from "./Button";
export { default as Container } from "./Container";
export { default as Sidebar } from "./Sidebar";
export { default as Logo } from "./Logo";
-export { default as ClickOutside } from "./ClickOutside";
diff --git a/components/types.ts b/components/ui/types.ts
similarity index 100%
rename from components/types.ts
rename to components/ui/types.ts
diff --git a/lib/bigcommerce/api/operations/get-all-products.ts b/lib/bigcommerce/api/operations/get-all-products.ts
index c69bea34d..668aef187 100644
--- a/lib/bigcommerce/api/operations/get-all-products.ts
+++ b/lib/bigcommerce/api/operations/get-all-products.ts
@@ -1,9 +1,9 @@
import {
GetAllProductsQuery,
GetAllProductsQueryVariables,
-} from 'lib/bigcommerce/schema';
-import { getConfig, Images, ProductImageVariables } from '..';
-import { RecursivePartial } from '../types';
+} from "lib/bigcommerce/schema";
+import { getConfig, Images, ProductImageVariables } from "..";
+import { RecursivePartial } from "../types";
export const getAllProductsQuery = /* GraphQL */ `
query getAllProducts(
@@ -104,7 +104,7 @@ export const getAllProductsQuery = /* GraphQL */ `
export interface GetAllProductsResult
{
products: T extends GetAllProductsQuery
- ? T['site']['products']['edges']
+ ? T["site"]["products"]["edges"]
: unknown;
}
diff --git a/pages/index.tsx b/pages/index.tsx
index abc67498f..b0ffda896 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -1,10 +1,10 @@
-import { GetStaticPropsContext, InferGetStaticPropsType } from 'next';
-import getAllProducts from 'lib/bigcommerce/api/operations/get-all-products';
-import { Layout } from '@components/core';
+import { GetStaticPropsContext, InferGetStaticPropsType } from "next";
+import getAllProducts from "lib/bigcommerce/api/operations/get-all-products";
+import { Layout } from "@components/core";
+import { ProductGrid } from "@components/product";
export async function getStaticProps({ preview }: GetStaticPropsContext) {
const { products } = await getAllProducts();
-
return {
props: { products },
};
@@ -13,15 +13,10 @@ export async function getStaticProps({ preview }: GetStaticPropsContext) {
export default function Home({
products,
}: InferGetStaticPropsType) {
- console.log('PRODUCTS', products);
-
+ console.log("PRODUCTS", products);
return (
-
+
);
}
diff --git a/tailwind.config.js b/tailwind.config.js
index 29f406734..dfb08c05e 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -15,6 +15,7 @@ module.exports = {
violet: "#7928CA",
pink: "#FF0080",
cyan: "#50E3C2",
+ blue: "#0070F3",
},
},
},
diff --git a/tsconfig.json b/tsconfig.json
index d8d1fa01c..faa489c13 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -15,8 +15,9 @@
"isolatedModules": true,
"jsx": "preserve",
"paths": {
- "@components/*": ["components/*"],
- "@assets/*": ["assets/*"]
+ "@lib/*": ["lib/*"],
+ "@assets/*": ["assets/*"],
+ "@components/*": ["components/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],