diff --git a/package.json b/package.json index 27ddd7b7..ee2659ef 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "app.salona", "private": true, - "version": "2.110.103", + "version": "2.110.104", "type": "module", "scripts": { "dev": "vite --host", diff --git a/src/apps/new-ui/pages/PersonnelManagement/+components/PersonnelScroller.tsx b/src/apps/new-ui/pages/PersonnelManagement/+components/PersonnelScroller.tsx index 3097c118..986f15cd 100644 --- a/src/apps/new-ui/pages/PersonnelManagement/+components/PersonnelScroller.tsx +++ b/src/apps/new-ui/pages/PersonnelManagement/+components/PersonnelScroller.tsx @@ -1,4 +1,4 @@ -import React, { useMemo } from "react"; +import { useMemo } from "react"; import { useGetServicesWithPersonels } from "@/apps/new-ui/services/PersonnelServices"; interface Props { @@ -56,14 +56,14 @@ const PersonnelScroller: React.FC = ({ onSelect, selectedPersonelServiceI const fullName = `${c.first_name ?? ""} ${c.last_name ?? ""}`.trim() || "بدون نام"; const selected = selectedPersonelServiceId === c.personel_service_id; - const imgSrc = (() => { - const src = c.profile_picture; - if (!src) return null; - if (/^https?:\/\//i.test(src)) return src; - const base = import.meta.env.VITE_APP_API_URL ?? ""; - if (!base) return src; - return `${base.replace(/\/$/, "")}/${src.replace(/^\//, "")}`; - })(); + // const imgSrc = (() => { + // const src = c.profile_picture; + // if (!src) return null; + // if (/^https?:\/\//i.test(src)) return src; + // const base = import.meta.env.VITE_APP_API_URL ?? ""; + // if (!base) return src; + // return `${base.replace(/\/$/, "")}/${src.replace(/^\//, "")}`; + // })(); return (