change design all page & component page booking and account & cleancode

This commit is contained in:
Ehsan
2024-09-01 20:43:53 +03:30
parent 2afd79b84d
commit bb154ac63f
46 changed files with 685 additions and 523 deletions
+2 -3
View File
@@ -3,7 +3,7 @@
import AutoCompleteSelect from "@/app/component/element/AutoCompleteSelect"
import { useState } from "react";
function PlaceVisit() {
function PlaceVisit({ locateVisit, setLocateVisit, isError }) {
const clinics = [
{ label: 'درمانگاه رازی', id: 10 },
@@ -11,14 +11,13 @@ function PlaceVisit() {
{ label: 'درمانگاه مرکزی', id: 30 }
];
const [locateVisit, setLocateVisit] = useState();
const updateData = event => setLocateVisit(event.target.innerText);
return (
<div className="flex flex-col items-start gap-[19px] justify-start">
<p className="text-[#3B3B3B] text-[14px] md:text-[16px] font-bold">1. انتخاب محل ویزیت</p>
<AutoCompleteSelect
isError={isError && !locateVisit}
updateData={updateData}
label='درمانگاه'
list={clinics}