update dashboard data and design and change req from ssr to csr & change design and data doctor and clinic item

This commit is contained in:
Ehsan
2025-06-17 00:26:16 +03:30
parent 528006e7ff
commit debd6b0eb5
13 changed files with 306 additions and 116 deletions
@@ -1,4 +1,6 @@
function Content({ isConfirmed, children, title }) {
function Content({ isConfirmed, children, title, error }) {
console.log(error);
return (
<div className="flex w-full flex-col items-start justify-start gap-[8px] sm:gap-[3px] md:gap-[7px] lg:gap-[9px]">
<div className="flex min-h-[32px] items-center justify-start gap-[8px] md:gap-[6px] lg:gap-[4px]">
@@ -12,7 +14,10 @@ function Content({ isConfirmed, children, title }) {
</p>
)}
</div>
{children}
<div className="flex flex-col w-full items-start justify-start gap-1">
{children}
<p className="text-red-600 text-[12px]">{error || ""}</p>
</div>
</div>
);
}