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}
</span>
{level === 0 ? (
{
/* level === 0 ? (
<span
className={`text-xs ${
isPrimaryActive ? "text-white/70" : "text-[#9CA3AF]"
}`}
>
{item.user_count || 0} total
{item.child_count || 0} total
</span>
) : hasChildren ? (
) : */
hasChildren ? (
<span
className={`text-xs ${
isPrimaryActive ? "text-white/70" : "text-[#9CA3AF]"
@ -244,7 +246,7 @@ export const DepartmentTreeView = ({
}
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) => (
<TreeItem
key={item.id}