feat(panel): connect turns/user-account/add-doctor to real data
- انتقال adapterهای نماینده به lib/representationAdapters (server-safe، بدون وابستگی client مثل js-cookie/react-toastify) - turns: لیست از daily[] داشبورد ماهانه (ستون نام/تخصص خالی، بدون داده ساختگی) - user-account: حساب بانکی واقعی از bank_account نماینده (map به آرایه تککارته) - add-doctor: حذف import mock مرده (کامپوننت data مصرف نمیکرد) - رفع dead import اشتباه از turns/page در clinic/doctors که build را میشکست Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
import { useState } from "react";
|
||||
import List from "./List";
|
||||
import Head from "./head";
|
||||
import page from "@/app/panel/(layout)/turns/page";
|
||||
|
||||
function Doctors({ slug, doctors, pages }) {
|
||||
const [page, setPage] = useState(pages?.current || 1);
|
||||
|
||||
@@ -6,7 +6,7 @@ import Sidebar from "@/components/layoutPanel/sidebar";
|
||||
import UserDetail from "@/components/layoutPanel/userDetail";
|
||||
import { usePathname } from "next/navigation";
|
||||
import BgGray from "@/components/layoutPanel/sidebar/BgGray";
|
||||
import { adaptRepresentationInfo } from "@/helper";
|
||||
import { adaptRepresentationInfo } from "@/lib/representationAdapters";
|
||||
|
||||
function Content({ children, representationInfo }) {
|
||||
const pathname = usePathname();
|
||||
|
||||
Reference in New Issue
Block a user