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:
Ehsan
2025-09-02 00:32:04 +03:30
parent 1e70d88a84
commit 6920e4078b
9 changed files with 96 additions and 52 deletions
+2 -2
View File
@@ -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}