From ed1c796f49d498bd3c73725ddb4694d388441a14 Mon Sep 17 00:00:00 2001 From: Jiajun Xu Date: Thu, 22 May 2025 21:01:57 -0700 Subject: [PATCH] make the computer/people icon numbers not hard coded --- src/components/Navbar.tsx | 39 +++++++++++---------------------------- 1 file changed, 11 insertions(+), 28 deletions(-) diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index 07df1c6..3fdc73a 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -41,35 +41,18 @@ export default function Navbar({ activePage = "" }: NavbarProps) {
- {[ - 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, - ].map(() => ( - <> - - computer icon + {Array.from({ length: 20 }).map((_, index) => ( +
+ {index - - - - people icon - - - ))} +
+ ))} +
);