set default all field in step page add-doctor
This commit is contained in:
@@ -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]">
|
||||
|
||||
Reference in New Issue
Block a user