Skip to content

Commit

Permalink
mobile cart navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
vicarb committed Apr 4, 2023
1 parent 252a572 commit 1d26059
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ const Navbar: React.FC<NavbarProps> = ({ cartItems }) => {
Blog
</a>
</div>
<div className="flex items-center ml-4">
<div className="flex items-center">
<FaShoppingCart size={20} className="text-white flex-1" />
<div className="flex items-center lg:ml-4">
<div className="flex items-center ">
<FaShoppingCart size={20} className="text-white flex-1 cursor-pointer" />
{cartItems > 0 && (
<div className="bg-white text-gray-800 rounded-full px-2 ml-2">
<div className="bg-white text-gray-800 rounded-full px-2 ml-2 text-sm">
{cartItems}
</div>
)}
Expand Down

0 comments on commit 1d26059

Please sign in to comment.