From 43db0e77336d754503f3d9fd3cd7eb8ef48b0f9a Mon Sep 17 00:00:00 2001 From: Promise Temitope Date: Thu, 10 Apr 2025 17:18:09 +0300 Subject: [PATCH 1/3] made matchall work --- .../(pages)/(public)/recipes/_components/form.tsx | 2 +- src/app/(pages)/(public)/recipes/page.tsx | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/app/(pages)/(public)/recipes/_components/form.tsx b/src/app/(pages)/(public)/recipes/_components/form.tsx index 18de7f8..f878266 100644 --- a/src/app/(pages)/(public)/recipes/_components/form.tsx +++ b/src/app/(pages)/(public)/recipes/_components/form.tsx @@ -20,7 +20,7 @@ export const Form: React.FC<{ suggestions: Array }> = ({ if (tags?.length) { tags.forEach((tag) => params.append("tags", tag.trim())); } - const endpoint = `/recipes?${params.toString()}&matchAll=true`; + const endpoint = `/recipes?${params.toString()}`; const data = await fetchRecipes(endpoint); console.log("fetched recipes (data): ", data); router.push(endpoint); diff --git a/src/app/(pages)/(public)/recipes/page.tsx b/src/app/(pages)/(public)/recipes/page.tsx index 126169e..37b856d 100644 --- a/src/app/(pages)/(public)/recipes/page.tsx +++ b/src/app/(pages)/(public)/recipes/page.tsx @@ -35,12 +35,12 @@ export default async function RecipesPage({ } // Fetch recipes based on search params - const recipes = await API.get(`recipes?${params.toString()}`).catch( - (reason) => { - console.log(reason); - return []; - } - ); + const recipes = await API.get( + `recipes?${params.toString()}&matchAll=true` + ).catch((reason) => { + console.log(reason); + return []; + }); return ( <> From 3f15e2b947a34c3362b0c15071f6b9837e443152 Mon Sep 17 00:00:00 2001 From: Promise Temitope Date: Thu, 10 Apr 2025 17:29:14 +0300 Subject: [PATCH 2/3] fixed size difference --- src/components/navbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/navbar.tsx b/src/components/navbar.tsx index 2b0da31..127d904 100644 --- a/src/components/navbar.tsx +++ b/src/components/navbar.tsx @@ -37,7 +37,7 @@ export const Navbar: React.FC = ({ {label} From 00e515c6921785634a15b45001ec2bed0e36bb12 Mon Sep 17 00:00:00 2001 From: Promise Temitope Date: Thu, 10 Apr 2025 17:31:59 +0300 Subject: [PATCH 3/3] repositioned images --- src/app/(pages)/(public)/(home)/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/(pages)/(public)/(home)/page.tsx b/src/app/(pages)/(public)/(home)/page.tsx index 7c111eb..7bf32e1 100644 --- a/src/app/(pages)/(public)/(home)/page.tsx +++ b/src/app/(pages)/(public)/(home)/page.tsx @@ -63,7 +63,6 @@ export default async function Home() {
-
{[ ["/tiktok-card.png", "#"], @@ -78,6 +77,7 @@ export default async function Home() { ))}
+ {/* */}