diff --git a/services/minespace-web/src/components/pages/Project/ProjectSummaryPage.tsx b/services/minespace-web/src/components/pages/Project/ProjectSummaryPage.tsx index 5ff58df91a..cacf3daf28 100644 --- a/services/minespace-web/src/components/pages/Project/ProjectSummaryPage.tsx +++ b/services/minespace-web/src/components/pages/Project/ProjectSummaryPage.tsx @@ -36,9 +36,11 @@ import { AMS_STATUS_CODES_SUCCESS, AMS_STATUS_CODE_FAIL, AMS_ENVIRONMENTAL_MANAGEMENT_ACT_TYPES, + SystemFlagEnum, } from "@mds/common"; import { useFeatureFlag } from "@mds/common/providers/featureFlags/useFeatureFlag"; import { fetchRegions } from "@mds/common/redux/slices/regionsSlice"; +import { getSystemFlag } from "@mds/common/redux/selectors/authenticationSelectors"; interface IParams { mineGuid?: string; @@ -51,6 +53,8 @@ export const ProjectSummaryPage = () => { const dispatch = useDispatch(); const history = useHistory(); const location = useLocation(); + const systemFlag = useSelector(getSystemFlag); + const isCore = systemFlag === SystemFlagEnum.core; const { mineGuid, projectGuid, projectSummaryGuid, tab } = useParams(); const anyTouched = useSelector( @@ -71,7 +75,11 @@ export const ProjectSummaryPage = () => { : mine?.mine_guid === mineGuid; const [isLoaded, setIsLoaded] = useState(isDefaultLoaded); const [isEditMode, setIsEditMode] = useState(isDefaultEditMode); - const projectFormTabs = null; + const projectFormTabs = getProjectFormTabs( + amsFeatureEnabled, + isCore, + isFeatureEnabled(Feature.MAJOR_PROJECT_REFACTOR) + ); const activeTab = tab ?? projectFormTabs[0]; const handleFetchData = async () => {