set default all field in step page add-doctor

This commit is contained in:
Ehsan
2024-10-20 00:20:12 +03:30
parent db3ed1090b
commit 5ff157d04b
3 changed files with 16 additions and 15 deletions
@@ -12,6 +12,7 @@ import { checkAllValues } from "@/helper";
function Form({ setValue, parent, data, setData }) {
const changeData = (value, type, name) =>
type !== "isEdit" &&
setData((prev) => {
return {
...prev,
@@ -7,7 +7,8 @@ import AddLocationP from "@/components/icons/AddLocationP";
import AutoCompleteSelect from "@/app/component/element/AutoCompleteSelect";
function Form({ parent, data, setData }) {
const changeData = (value, type, name) => {
const changeData = (value, type, name) =>
type !== "isEdit" &&
setData((prev) => {
return {
...prev,
@@ -20,7 +21,6 @@ function Form({ parent, data, setData }) {
},
};
});
};
return (
<div className="mt-[24px] grid grid-cols-1 md:grid-cols-2 gap-x-[48px] gap-y-[24px]">