made resources tab visible if enabled
This commit was merged in pull request #400.
This commit is contained in:
@@ -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>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user