diff --git a/public/images/slide-1.jpg b/public/images/slide-1.jpg new file mode 100644 index 0000000..96ae292 Binary files /dev/null and b/public/images/slide-1.jpg differ diff --git a/public/images/slide-2.jpg b/public/images/slide-2.jpg new file mode 100644 index 0000000..2ba73f3 Binary files /dev/null and b/public/images/slide-2.jpg differ diff --git a/public/images/slide-3.jpg b/public/images/slide-3.jpg new file mode 100644 index 0000000..d46498c Binary files /dev/null and b/public/images/slide-3.jpg differ diff --git a/src/components/product/card.tsx b/src/components/product/card.tsx index 3df8d6f..067ed44 100644 --- a/src/components/product/card.tsx +++ b/src/components/product/card.tsx @@ -1,5 +1,7 @@ +/* eslint-disable react/jsx-one-expression-per-line */ /* eslint-disable object-curly-newline */ -import { Button } from "antd"; +import { addCommas } from "@persian-tools/persian-tools"; +import { Button, Divider } from "antd"; import { Link } from "react-router-dom"; interface Props { @@ -13,9 +15,9 @@ function Card({ url, title, price, quantity, imageURL }: Props) { return ( + className=" flex h-[280px] w-full flex-col overflow-hidden rounded-lg border-2 border-[var(--tg-theme-secondary-bg-color)]">
@@ -29,7 +31,10 @@ function Card({ url, title, price, quantity, imageURL }: Props) {
غذا
*/} -
قیمت :{price} تومان
+ +
+ تومان {addCommas(price || 0)} +
{/*
تعداد :{quantity} عدد
*/}