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:
Ehsan
2025-06-01 01:08:25 +03:30
parent 80c74361eb
commit e292176a61
45 changed files with 223 additions and 258 deletions
+3 -3
View File
@@ -3,7 +3,7 @@ import { useState } from "react";
import ItemUser from "./ItemUser";
function Comment({ data, loading }) {
const [list, setList] = useState(data.comments);
const [list, setList] = useState(data?.comments);
const [update, setUpdate] = useState(false);
return (
@@ -13,8 +13,8 @@ function Comment({ data, loading }) {
}`}
>
{data &&
!!data.comments.length &&
data.comments.map((item, idx) => (
!!data?.comments?.length &&
data?.comments.map((item, idx) => (
<ItemUser
key={idx}
list={list}