made resources tab visible if enabled

This commit was merged in pull request #400.
This commit is contained in:
victorAnumudu
2023-09-03 06:26:19 +01:00
parent 6337c82374
commit addede388e
+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>
); );
}; };