From 8ae3a82d5720b20f4dc811d1d23aab5a095fc308 Mon Sep 17 00:00:00 2001 From: Thith-thith Date: Mon, 7 Aug 2023 04:58:08 -0400 Subject: [PATCH] Changes to be committed: modified: client/src/pages/products/index.tsx --- client/src/pages/products/index.tsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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 ; }}