From d604ab441c39c5bfb92d7f1d216acbce9b654c6a Mon Sep 17 00:00:00 2001 From: Fascinated Date: Mon, 10 Jul 2023 04:12:09 +0100 Subject: [PATCH] cleanup some of the html to make it less bulky --- src/app/page.tsx | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 2099e12..504478c 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -44,9 +44,9 @@ export default function Home() { className={`flex flex-col items-center justify-center w-screen h-screen bg-neutral-900 ${selectedTheme.textColor}`} >
{links.map((link, index) => { - const icons: any = link.icon?.split(" "); + const icons: any = link.icon?.split(" ") ?? []; return ( -
- {link.icon && ( - <> - -
- - )} -

{link.title}

-
+ {link.icon && ( + <> + +
+ + )} +

{link.title}

); })}