-
نمایش در غذاهای
+
نمایش در کالاهای
{
},
{
key: 'food',
- title: 'غذا',
+ title: 'کالا',
},
{
key: 'date',
@@ -142,7 +142,7 @@ const CommentsList: FC = () => {
number: '۱۲۳۳۷',
customerName: 'علی کریمی',
strengths: 'سرویس سریع',
- weaknesses: 'کم بودن حجم غذا',
+ weaknesses: 'کم بودن حجم کالا',
food: 'پاستا کربونارا',
date: '2024-11-04',
isDisplayed: true,
@@ -161,7 +161,7 @@ const CommentsList: FC = () => {
id: 6,
number: '۱۲۳۳۹',
customerName: 'حسن نوری',
- strengths: 'ارزش غذایی مناسب',
+ strengths: 'ارزش کالایی مناسب',
weaknesses: 'بوی نامطبوع',
food: 'کباب ترکی',
date: '2024-11-06',
diff --git a/src/pages/coupon/components/FoodSelector.tsx b/src/pages/coupon/components/FoodSelector.tsx
index 747602f..f19d07a 100644
--- a/src/pages/coupon/components/FoodSelector.tsx
+++ b/src/pages/coupon/components/FoodSelector.tsx
@@ -48,7 +48,7 @@ const FoodSelector: FC
= ({ formik, foods }) => {
return (
-
غذاهایی که شامل تخفیف میشوند
+
کالاهایی که شامل تخفیف میشوند
{
-
دسته بندی غذا
+ دسته بندی کالا
{
order: 0
},
validationSchema: Yup.object().shape({
- title: Yup.string().required('نام غذا الزامی است'),
+ title: Yup.string().required('نام کالا الزامی است'),
categoryId: Yup.string().required('دستهبندی الزامی است'),
price: Yup.number().required('قیمت الزامی است').min(0, 'قیمت باید مثبت باشد'),
prepareTime: Yup.number().required('زمان آمادهسازی الزامی است').min(0, 'زمان آمادهسازی باید مثبت باشد'),
@@ -75,11 +75,11 @@ const CreateFood: FC = () => {
createFood(foodData, {
onSuccess: () => {
- toast.success('غذا با موفقیت ایجاد شد')
+ toast.success('کالا با موفقیت ایجاد شد')
window.location.href = Pages.foods.list
},
onError: (error: ErrorType) => {
- toast.error(error?.response?.data?.error?.message[0] || 'خطا در ایجاد غذا')
+ toast.error(error?.response?.data?.error?.message[0] || 'خطا در ایجاد کالا')
}
})
}
@@ -104,7 +104,7 @@ const CreateFood: FC = () => {
- غذای جدید
+ کالای جدید
@@ -124,7 +124,7 @@ const CreateFood: FC = () => {
{
-
محتوای غذا
+
محتوای کالا
{formik.values.content.map((item, index) => (
diff --git a/src/pages/food/List.tsx b/src/pages/food/List.tsx
index afcc31d..073aaa9 100644
--- a/src/pages/food/List.tsx
+++ b/src/pages/food/List.tsx
@@ -36,14 +36,14 @@ const FoodsList: FC = () => {
return (
-
لیست غذاها
+
لیست کالاها
diff --git a/src/pages/food/Update.tsx b/src/pages/food/Update.tsx
index 30b3469..eacbe04 100644
--- a/src/pages/food/Update.tsx
+++ b/src/pages/food/Update.tsx
@@ -56,7 +56,7 @@ const UpdateFood: FC = () => {
order: 0
},
validationSchema: Yup.object().shape({
- title: Yup.string().required('نام غذا الزامی است'),
+ title: Yup.string().required('نام کالا الزامی است'),
categoryId: Yup.string().required('دستهبندی الزامی است'),
price: Yup.number().required('قیمت الزامی است').min(0, 'قیمت باید مثبت باشد'),
prepareTime: Yup.number().required('زمان آمادهسازی الزامی است').min(0, 'زمان آمادهسازی باید مثبت باشد'),
@@ -68,7 +68,7 @@ const UpdateFood: FC = () => {
}),
onSubmit: (values) => {
if (!id) {
- toast.error('شناسه غذا یافت نشد')
+ toast.error('شناسه کالا یافت نشد')
return
}
@@ -84,7 +84,7 @@ const UpdateFood: FC = () => {
updateFood({ id, params: foodData }, {
onSuccess: () => {
- toast.success('غذا با موفقیت بهروزرسانی شد')
+ toast.success('کالا با موفقیت بهروزرسانی شد')
navigate(Pages.foods.list)
},
onError: (error: ErrorType) => {
@@ -152,7 +152,7 @@ const UpdateFood: FC = () => {
if (!food) {
return (
-
غذا یافت نشد
+
کالا یافت نشد
)
}
@@ -161,7 +161,7 @@ const UpdateFood: FC = () => {
- ویرایش غذا
+ ویرایش کالا