4
0
forked from crowetic/commerce

Latest changes

This commit is contained in:
Belen Curcio 2020-10-02 12:03:42 -03:00
parent fe7051c1b4
commit c5e5cbaa68
3 changed files with 4 additions and 3 deletions

View File

@ -12,7 +12,7 @@ const CartSidebarView: FC = () => {
<div className="flex items-start justify-between space-x-3">
<div className="h-7 flex items-center">
<button
onClick={closeSidebar}
onClick={() => closeSidebar}
aria-label="Close panel"
className="text-gray-400 hover:text-gray-500 transition ease-in-out duration-150"
>

View File

@ -16,7 +16,7 @@ const UserNav: FC<Props> = ({ className }) => {
return (
<nav className={rootClassName}>
<ul className={s.list}>
<li className={s.item} onClick={openSidebar}>
<li className={s.item} onClick={() => openSidebar}>
<Bag />
<span className="bg-black h-4 w-4 absolute rounded-full inset-3 text-white flex items-center justify-center font-bold text-xs">
1

View File

@ -11,6 +11,7 @@ interface Props {
interface ProductData {
name: string
images: any
prices: any
}
const ProductCard: FC<Props> = ({ className, productData }) => {
@ -28,7 +29,7 @@ const ProductCard: FC<Props> = ({ className, productData }) => {
</div>
<div>
<div className="px-6 py-1 pb-3 bg-white text-black font-semibold inline-block text-sm leading-6">
$50
${productData.prices.price.value}
</div>
</div>
</div>