diff --git a/client/src/pages/products/index.tsx b/client/src/pages/products/index.tsx index 21e072a..9890a11 100644 --- a/client/src/pages/products/index.tsx +++ b/client/src/pages/products/index.tsx @@ -1,13 +1,14 @@ import { Component, For, Show, createResource } from "solid-js"; import Cards from "../../components/cards/Cards"; +import CoreProducts from "../../data/Core-Product"; const Products: Component<{}> = () => { - const fetchData = async () => { - const res = await fetch("https://cptdb.koompi.com/CoreProducts"); - return res.json(); - }; + // const fetchData = async () => { + // const res = await fetch("https://cptdb.koompi.com/CoreProducts"); + // return res.json(); + // }; - const [allProducts] = createResource(fetchData); + // const [allProducts] = createResource(fetchData); return (
@@ -687,9 +688,9 @@ const Products: Component<{}> = () => {
- - {(CoreProducts) => { - return ; + + {(res) => { + return ; }}