handle limit page dashboard & change header profile user & get data from api in page clinics & clinic item and doctor item
This commit is contained in:
@@ -6,7 +6,7 @@ import userData from "@/data/userData.json";
|
||||
import DashboardPage from "@/components/dashboard";
|
||||
import UserAccountPage from "./userAccount";
|
||||
|
||||
function Content({ matchedCity }) {
|
||||
function Content({ matchedCity, logged }) {
|
||||
const [value, setValue] = useState(0);
|
||||
const [isOpenSide, setIsOpenSide] = useState(false);
|
||||
const [isTurnsDetails, setIsTurnsDetails] = useState(false);
|
||||
@@ -14,8 +14,9 @@ function Content({ matchedCity }) {
|
||||
return (
|
||||
<DashboardPage
|
||||
value={value}
|
||||
logged={logged}
|
||||
setValue={setValue}
|
||||
user={userData.data}
|
||||
user={userData.data}
|
||||
isOpenSide={isOpenSide}
|
||||
matchedCity={matchedCity}
|
||||
setIsOpenSide={setIsOpenSide}
|
||||
|
||||
Reference in New Issue
Block a user