From f75924e8f990cd4b9b116bcd7e5f42c0c8c1b7ce Mon Sep 17 00:00:00 2001 From: "James Morris, MS" <96435344+james-a-morris@users.noreply.github.com> Date: Tue, 10 Sep 2024 16:25:00 -0400 Subject: [PATCH] improve: change no-results copy (#62) Signed-off-by: james-a-morris --- src/app/(routes)/blog/_components/posts.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/(routes)/blog/_components/posts.tsx b/src/app/(routes)/blog/_components/posts.tsx index d24f452..ad6cefe 100644 --- a/src/app/(routes)/blog/_components/posts.tsx +++ b/src/app/(routes)/blog/_components/posts.tsx @@ -48,16 +48,16 @@ export async function Posts({ const searchedSlugs = await retrieveContentfulPublishedSlugs({ query: search, }); - return ( + return searchedSlugs.length === 0 ? ( +

No results.

+ ) : (
Search results - {searchedSlugs.length === 0 ? ( -

No results

- ) : ( - searchedSlugs.map((slug) => ) - )} + {searchedSlugs.map((slug) => ( + + ))}
); }