Merge branch 'resources-tab-visibility' of WrenchBoard/Users-Wrench into master

This commit is contained in:
2023-09-03 13:01:03 +00:00
committed by Gogs
+12 -7
View File
@@ -158,13 +158,18 @@ export default function Resources(props) {
return ( return (
<ul className="lg:flex lg:space-x-14 space-x-8"> <ul className="lg:flex lg:space-x-14 space-x-8">
{tabCategories?.length > 0 && {tabCategories?.length > 0 &&
tabCategories?.map((tabValue, idx) => ( tabCategories?.map((tabValue, idx) => {
<TabItem if(tabValue.enabled){
key={tabValue.id} return (
tabValue={tabValue} <TabItem
isActive={tab === tabValue.name || (idx === 0 && tab === "")} key={tabValue.id}
/> tabValue={tabValue}
))} isActive={tab === tabValue.name || (idx === 0 && tab === "")}
/>
)
}
}
)}
</ul> </ul>
); );
}; };