From 4c4e3784c48f9cb8264588474c04421c9229e1c5 Mon Sep 17 00:00:00 2001 From: Yusuf Musleh Date: Fri, 5 Apr 2024 14:35:42 +0300 Subject: [PATCH] feat: Put Taxonomies tab behind flag --- src/studio-home/tabs-section/index.jsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/studio-home/tabs-section/index.jsx b/src/studio-home/tabs-section/index.jsx index 1e0cb3848c..e1b6b91f62 100644 --- a/src/studio-home/tabs-section/index.jsx +++ b/src/studio-home/tabs-section/index.jsx @@ -33,7 +33,7 @@ const TabsSection = ({ libraryAuthoringMfeUrl, redirectToLibraryAuthoringMfe, courses, librariesEnabled, libraries, archivedCourses, - numPages, coursesCount, + numPages, coursesCount, taxonomiesEnabled, } = useSelector(getStudioHomeData); const { courseLoadingStatus, @@ -103,13 +103,15 @@ const TabsSection = ({ ); } - tabs.push( - , - ); + if (taxonomiesEnabled) { + tabs.push( + , + ); + } return tabs; }, [archivedCourses, librariesEnabled, showNewCourseContainer, isLoadingCourses, isLoadingLibraries]);