Finish admin dashboard and update sql code

This commit is contained in:
estherdev03
2025-04-20 07:50:57 -06:00
parent 7a2250369e
commit 26cd50ab6f
16 changed files with 766 additions and 57 deletions

View File

@@ -3,7 +3,7 @@ import { Link, useNavigate } from "react-router-dom";
import UserDropdown from "./UserDropdown";
import { Search, Heart } from "lucide-react";
const Navbar = ({ onLogout, userName }) => {
const Navbar = ({ onLogout, userName, isAdmin, handleShowAdminDashboard }) => {
const [searchQuery, setSearchQuery] = useState("");
const navigate = useNavigate();
@@ -76,7 +76,12 @@ const Navbar = ({ onLogout, userName }) => {
</Link>
{/* User Profile */}
<UserDropdown onLogout={onLogout} userName={userName} />
<UserDropdown
isAdmin={isAdmin}
onLogout={onLogout}
userName={userName}
handleShowAdminDashboard={handleShowAdminDashboard}
/>
</div>
</div>
</div>