refactor: comment out department user count display and reduce vertical spacing in DepartmentTreeView

This commit is contained in:
Yashwin 2026-05-11 19:29:15 +05:30
parent 0510f15175
commit af7e83c59c

View File

@ -112,15 +112,17 @@ const TreeItem = ({
{item.code} {item.code}
</span> </span>
{level === 0 ? ( {
/* level === 0 ? (
<span <span
className={`text-xs ${ className={`text-xs ${
isPrimaryActive ? "text-white/70" : "text-[#9CA3AF]" isPrimaryActive ? "text-white/70" : "text-[#9CA3AF]"
}`} }`}
> >
{item.user_count || 0} total {item.child_count || 0} total
</span> </span>
) : hasChildren ? ( ) : */
hasChildren ? (
<span <span
className={`text-xs ${ className={`text-xs ${
isPrimaryActive ? "text-white/70" : "text-[#9CA3AF]" isPrimaryActive ? "text-white/70" : "text-[#9CA3AF]"
@ -244,7 +246,7 @@ export const DepartmentTreeView = ({
} }
return ( return (
<div className="flex flex-col gap-4 p-4 border border-[#D1D5DB] bg-white rounded-lg self-stretch"> <div className="flex flex-col gap-2 p-4 border border-[#D1D5DB] bg-white rounded-lg self-stretch">
{data.map((item) => ( {data.map((item) => (
<TreeItem <TreeItem
key={item.id} key={item.id}