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