From 16c7a6103239e56b31e5e635316fe928eca277c0 Mon Sep 17 00:00:00 2001 From: Aditya Gupta Date: Sat, 6 Jun 2026 11:06:35 +0530 Subject: [PATCH] feat: updated navbar to match style --- src/components/BottomNav.jsx | 39 ++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/src/components/BottomNav.jsx b/src/components/BottomNav.jsx index 2d0f273..1a381bf 100644 --- a/src/components/BottomNav.jsx +++ b/src/components/BottomNav.jsx @@ -1,38 +1,51 @@ import React from "react"; +import { Home, Coffee, Plus, Bookmark, User } from "lucide-react"; export default function BottomNav({ view, setView, setSelectedBean, onCreatePress }) { const items = [ - { id: "dashboard", label: "Home", icon: "🏠" }, - { id: "beans", label: "Recipes", icon: "🫘" }, - { id: "create", label: "Create", icon: "+", isAction: true }, - { id: "brews", label: "Logs", icon: "📋" }, - { id: "profile", label: "Profile", icon: "👤" }, + { id: "dashboard", label: "Home", Icon: Home }, + { id: "beans", label: "Recipes", Icon: Coffee }, + { id: "create", label: "Create", Icon: Plus, isAction: true }, + { id: "brews", label: "Logs", Icon: Bookmark }, + { id: "profile", label: "Profile", Icon: User }, ]; return ( -
-
+
+
{items.map(item => { const isActive = view === item.id; + const { Icon } = item; + if (item.isAction) { return ( ); } + return ( ); })}