diff --git a/app/component/element/AutoCompleteSelect.js b/app/component/element/AutoCompleteSelect.js index be2bb29..1c8caa2 100644 --- a/app/component/element/AutoCompleteSelect.js +++ b/app/component/element/AutoCompleteSelect.js @@ -8,10 +8,9 @@ function AutoCompleteSelect({ list, updateData, name, label }) { disablePortal options={list} className="!w-full !rounded-lg md:!w-[344px]" - onChange={(event) => { + onChange={(event) => updateData && - updateData(event, name) - } + updateData(event, name) } sx={{ ...styleTextSelectRight, diff --git a/app/component/head/index.js b/app/component/head/index.js index 372f8ad..6b7b8b9 100644 --- a/app/component/head/index.js +++ b/app/component/head/index.js @@ -1,9 +1,13 @@ function HeadPageList({ children, title, detail }) { return ( -
-
-

{title}

-

{detail}

+
+
+

{title}

+

{detail}

{children}
diff --git a/app/globals.css b/app/globals.css index 10a1da6..78dadc7 100644 --- a/app/globals.css +++ b/app/globals.css @@ -240,6 +240,10 @@ html { transition: 0.5s all; } +.bg-head-menu { + background: url(../public/assets/images/bg-head-menu.png); +} + /* Hidden Scroll */ .hidden-scroll::-webkit-scrollbar-thumb { diff --git a/components/clinics/head/SearchBar.js b/components/clinics/head/SearchBar.js index 1b0fc55..cdbd194 100644 --- a/components/clinics/head/SearchBar.js +++ b/components/clinics/head/SearchBar.js @@ -1,15 +1,15 @@ -import ArrowBottomD from '@/components/icons/ArrowBottomD' -import SearchD from '@/components/icons/SearchD' -import SettingD from '@/components/icons/SettingD' -import { Button, ButtonGroup, TextField } from '@mui/material' -import React from 'react' -import ModalSearchCity from './modal' +import { Button, ButtonGroup, TextField } from '@mui/material'; +import SearchD from '@/components/icons/SearchD'; +import ModalSearchCity from './modal'; function SearchBar() { return ( diff --git a/components/clinics/head/modal/index.js b/components/clinics/head/modal/index.js index 642e86f..f34e6bd 100644 --- a/components/clinics/head/modal/index.js +++ b/components/clinics/head/modal/index.js @@ -29,20 +29,35 @@ function ModalSearchCity() { const handleOpen = () => setOpen(true); const handleClose = () => setOpen(false); + const [selected, setSelected] = useState({ + first: '', + second: '' + }); + + const updateData = (event, name) => + setSelected({ ...selected, [name]: event.target.innerText }) + return ( <> {/* Button Modal */} @@ -69,11 +84,15 @@ function ModalSearchCity() {

شهر یا استان مورد نظر را انتخاب نمایید:

diff --git a/components/clinics/index.js b/components/clinics/index.js index c2332a0..80a6c78 100644 --- a/components/clinics/index.js +++ b/components/clinics/index.js @@ -3,8 +3,10 @@ import List from "./list"; import SearchBar from "./head/SearchBar"; function ClinicsPage() { + + return ( -
+
-
+

{data.location}

-
+

ساعت کاری: {data.hours_of_work}

diff --git a/components/clinics/list/index.js b/components/clinics/list/index.js index f653656..debe623 100644 --- a/components/clinics/list/index.js +++ b/components/clinics/list/index.js @@ -12,7 +12,7 @@ function List() { -
    + diff --git a/components/doctor/detailDoctor/cards/AboutDcotor.js b/components/doctor/detailDoctor/cards/AboutDcotor.js index 2d530a9..3cc8382 100644 --- a/components/doctor/detailDoctor/cards/AboutDcotor.js +++ b/components/doctor/detailDoctor/cards/AboutDcotor.js @@ -8,7 +8,7 @@ function AboutDcotor({ doctor }) {

    {doctor.detail}

    تخصص ها

    -
      +
        {doctor.specialties.map((item, idx) => (
      • diff --git a/components/doctor/detailDoctor/index.js b/components/doctor/detailDoctor/index.js index fdccca0..c71e8e9 100644 --- a/components/doctor/detailDoctor/index.js +++ b/components/doctor/detailDoctor/index.js @@ -7,7 +7,7 @@ import LocationDoctor from "./cards/LocationDoctor" function DetailDoctor({ doctor }) { return ( -
        +
        diff --git a/components/icons/SearchD.js b/components/icons/SearchD.js index 70869bb..6b36000 100644 --- a/components/icons/SearchD.js +++ b/components/icons/SearchD.js @@ -1,6 +1,6 @@ function SearchD() { return ( - + diff --git a/components/layout/header/index.js b/components/layout/header/index.js index 9b1d279..e309a57 100644 --- a/components/layout/header/index.js +++ b/components/layout/header/index.js @@ -22,7 +22,7 @@ function Header({ name }) { px-[8px] sm:px-[16px] md:px-[24px] lg:px-[32px] py-[4px] sm:py-[8px] md:py-[12px] lg:py-[16px] flex transition-all duration-500 overflow-hidden justify-between items-center flex-nowrap ${isActive ? '!pr-0' : '!px-4'} `}> -
        +
        diff --git a/components/specialties/head/index.js b/components/specialties/head/index.js deleted file mode 100644 index cb8c75e..0000000 --- a/components/specialties/head/index.js +++ /dev/null @@ -1,15 +0,0 @@ -import SmSearch from "@/components/searchHead/SmSearch"; - -function Head() { - return ( -
        -
        -

        تخصص مورد نظر شما چیست؟

        -

        تخصص مورد نظرتان را جستجو کرده و یا از لیست زیر انتخاب نمایید:

        - -
        -
        - ) -} - -export default Head \ No newline at end of file diff --git a/components/specialties/index.js b/components/specialties/index.js index cdeaffc..b1b36f7 100644 --- a/components/specialties/index.js +++ b/components/specialties/index.js @@ -1,10 +1,16 @@ -import Head from "./head" +import HeadPageList from "@/app/component/head" +import SmSearch from "../searchHead/SmSearch" import List from "./list" function SpecialtiesPage() { return (
        - + + +
        ) diff --git a/components/specialties/list/index.js b/components/specialties/list/index.js index 9274f4f..ae94564 100644 --- a/components/specialties/list/index.js +++ b/components/specialties/list/index.js @@ -8,9 +8,9 @@ function List() {
        -

        لیست تخصص ها

        +

        لیست تخصص ها

        -
          +
            {specialties.map(speciality => (