Commit c8b758d1 authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

add products count in category button

parent dc829dd5
......@@ -173,7 +173,7 @@ export default function Home() {
});
}}
>
ทั้งหมด
ทั้งหมด{category === -1 ? `(${productsFilter.length})` : ""}
</Button>
{categoryList.map((cat, idx) => (
<Button
......@@ -197,6 +197,7 @@ export default function Home() {
}}
>
{cat.name}
{cat.id === category ? `(${productsFilter.length})` : ""}
</Button>
))}
</Box>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment