change key field to specialty, filter list doctors with name, remove loading state from doctors page, save state id in url
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
import { TextField } from "@mui/material";
|
||||
import React from "react";
|
||||
|
||||
function SearchField({ fields, setFields }) {
|
||||
return (
|
||||
<TextField
|
||||
variant="standard"
|
||||
value={fields}
|
||||
onChange={(e) => setFields({ ...fields, search: e.target.value })}
|
||||
InputProps={{
|
||||
disableUnderline: true,
|
||||
}}
|
||||
sx={{
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
justifyContent: "center",
|
||||
width: "100% !important",
|
||||
"& .MuiInput-root": {
|
||||
padding: "0",
|
||||
borderBottom: "none",
|
||||
},
|
||||
"& .MuiInputBase-input": {
|
||||
color: "#6C757D",
|
||||
padding: "0px",
|
||||
},
|
||||
}}
|
||||
dir="rtl"
|
||||
placeholder="جستجوی نام پزشک، تخصص، بیماری ..."
|
||||
className={`!shadow-none !px-5 !h-full !w-[524px] bg-[#FAFAFA] !text-[14px] md:!text-[16px] !min-w-[50%] !rounded-0 !font-normal !text-[#6C757D]`}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
export default SearchField;
|
||||
Reference in New Issue
Block a user