redirect filter data to doctors page from home page just with one key && add picture url to doctors page && add conditional to appo page and change data in server
This commit is contained in:
@@ -2,7 +2,7 @@ import Content from "./Content";
|
||||
import EditField from "../../../app/component/fields/EditField";
|
||||
import DefaultSelect from "@/app/component/selectors/DefaultSelect";
|
||||
|
||||
function Form({ changeData, insurance, data, updateSelect, isForAnother }) {
|
||||
function Form({ changeData, insurance, data, isForAnother }) {
|
||||
const findVal = () => {
|
||||
return insurance?.find(
|
||||
(g) =>
|
||||
@@ -31,7 +31,7 @@ function Form({ changeData, insurance, data, updateSelect, isForAnother }) {
|
||||
</Content>
|
||||
<Content title="نوع بیمه">
|
||||
<DefaultSelect
|
||||
updateData={(name, val) => updateSelect(val, "value", name)}
|
||||
updateData={(name, val) => changeData(val, "value", name)}
|
||||
label="نوع بیمه"
|
||||
name="basic_insurance"
|
||||
list={insurance}
|
||||
|
||||
Reference in New Issue
Block a user