mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
fix(ui): use props instead of parent scope vars in FolderTreeView
activeItems/activeTab are not accessible inside the FolderTreeView sub-component. Use the skills prop (already passed) instead.
This commit is contained in:
@@ -1362,7 +1362,7 @@ function FolderTreeView({ skills, totalCount, isSearching, stickyTop = 0, onClea
|
||||
)}
|
||||
</>
|
||||
) : (
|
||||
<>{activeItems.length} {activeTab === 'agents' ? 'agent' : 'skill'}{activeItems.length !== 1 ? 's' : ''} in {folderCount} folder{folderCount !== 1 ? 's' : ''}</>
|
||||
<>{skills.length} item{skills.length !== 1 ? 's' : ''} in {folderCount} folder{folderCount !== 1 ? 's' : ''}</>
|
||||
)}
|
||||
</span>
|
||||
{folderCount > 1 && (
|
||||
|
||||
Reference in New Issue
Block a user