This commit is contained in:
@@ -57,6 +57,7 @@ const GeneralSettings: FC = () => {
|
|||||||
logo: "",
|
logo: "",
|
||||||
serviceArea: undefined,
|
serviceArea: undefined,
|
||||||
establishedYear: undefined,
|
establishedYear: undefined,
|
||||||
|
domain: "",
|
||||||
},
|
},
|
||||||
validationSchema,
|
validationSchema,
|
||||||
onSubmit: (values) => {
|
onSubmit: (values) => {
|
||||||
@@ -114,6 +115,7 @@ const GeneralSettings: FC = () => {
|
|||||||
logo: restaurantData.logo || "",
|
logo: restaurantData.logo || "",
|
||||||
serviceArea: restaurantData.serviceArea || undefined,
|
serviceArea: restaurantData.serviceArea || undefined,
|
||||||
establishedYear: restaurantData.establishedYear ?? undefined,
|
establishedYear: restaurantData.establishedYear ?? undefined,
|
||||||
|
domain: restaurantData.domain || "",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
@@ -131,6 +133,16 @@ const GeneralSettings: FC = () => {
|
|||||||
<div className="text-lg font-light">تنظیمات عمومی</div>
|
<div className="text-lg font-light">تنظیمات عمومی</div>
|
||||||
|
|
||||||
<form onSubmit={formik.handleSubmit}>
|
<form onSubmit={formik.handleSubmit}>
|
||||||
|
<div className="mt-8">
|
||||||
|
<Input
|
||||||
|
label="دامنه"
|
||||||
|
name="domain"
|
||||||
|
value={formik.values.domain}
|
||||||
|
onChange={formik.handleChange}
|
||||||
|
onBlur={formik.handleBlur}
|
||||||
|
error_text={formik.touched.domain && formik.errors.domain ? formik.errors.domain : undefined}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
<div className="mt-8 rowTwoInput">
|
<div className="mt-8 rowTwoInput">
|
||||||
<Input
|
<Input
|
||||||
label="نام فروشگاه"
|
label="نام فروشگاه"
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ export type UpdateRestaurantType = {
|
|||||||
description?: string;
|
description?: string;
|
||||||
establishedYear?: number;
|
establishedYear?: number;
|
||||||
serviceArea?: GeoJSONPolygon;
|
serviceArea?: GeoJSONPolygon;
|
||||||
|
domain?: string;
|
||||||
score?: {
|
score?: {
|
||||||
purchaseAmount: string;
|
purchaseAmount: string;
|
||||||
purchaseScore: string;
|
purchaseScore: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user