Skip to content

Commit

Permalink
feat: Put Taxonomies tab behind flag
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuf-musleh committed Apr 5, 2024
1 parent 7f3164b commit 4c4e378
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/studio-home/tabs-section/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const TabsSection = ({
libraryAuthoringMfeUrl,
redirectToLibraryAuthoringMfe,
courses, librariesEnabled, libraries, archivedCourses,
numPages, coursesCount,
numPages, coursesCount, taxonomiesEnabled,
} = useSelector(getStudioHomeData);
const {
courseLoadingStatus,
Expand Down Expand Up @@ -103,13 +103,15 @@ const TabsSection = ({
);
}

tabs.push(
<Tab
key={TABS_LIST.taxonomies}
eventKey={TABS_LIST.taxonomies}
title={intl.formatMessage(messages.taxonomiesTabTitle)}
/>,
);
if (taxonomiesEnabled) {
tabs.push(
<Tab
key={TABS_LIST.taxonomies}
eventKey={TABS_LIST.taxonomies}
title={intl.formatMessage(messages.taxonomiesTabTitle)}
/>,
);
}

return tabs;
}, [archivedCourses, librariesEnabled, showNewCourseContainer, isLoadingCourses, isLoadingLibraries]);
Expand Down

0 comments on commit 4c4e378

Please sign in to comment.