From 860ad3655f1205c58ecd2b0cf55bdfea3edaa475 Mon Sep 17 00:00:00 2001 From: Fredrik Oseberg Date: Tue, 13 Dec 2022 10:54:39 +0100 Subject: [PATCH] fix: use CR flag for draft banner --- frontend/src/component/feature/FeatureView/FeatureView.tsx | 3 ++- frontend/src/component/project/Project/Project.tsx | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/component/feature/FeatureView/FeatureView.tsx b/frontend/src/component/feature/FeatureView/FeatureView.tsx index f4b56b799c..0aa7b9d1bb 100644 --- a/frontend/src/component/feature/FeatureView/FeatureView.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureView.tsx @@ -43,7 +43,7 @@ export const FeatureView = () => { const { refetch: projectRefetch } = useProject(projectId); const { favorite, unfavorite } = useFavoriteFeaturesApi(); const { refetchFeature } = useFeature(projectId, featureId); - const { isChangeRequestConfiguredInAnyEnv } = + const { isChangeRequestConfiguredInAnyEnv, isChangeRequestFlagEnabled } = useChangeRequestsEnabled(projectId); const { uiConfig } = useUiConfig(); @@ -103,6 +103,7 @@ export const FeatureView = () => { ) : null diff --git a/frontend/src/component/project/Project/Project.tsx b/frontend/src/component/project/Project/Project.tsx index 35606e475a..86e472cac1 100644 --- a/frontend/src/component/project/Project/Project.tsx +++ b/frontend/src/component/project/Project/Project.tsx @@ -172,6 +172,7 @@ const Project = () => { ) : null