Add domain
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
hamid zarghami
2026-06-29 10:09:38 +03:30
parent 7601368bd3
commit d12b36d8dc
2 changed files with 13 additions and 0 deletions
+12
View File
@@ -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="نام فروشگاه"
+1
View File
@@ -19,6 +19,7 @@ export type UpdateRestaurantType = {
description?: string;
establishedYear?: number;
serviceArea?: GeoJSONPolygon;
domain?: string;
score?: {
purchaseAmount: string;
purchaseScore: string;