mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-05 17:53:12 +02:00
fix: use CR flag for draft banner
This commit is contained in:
parent
39ef840af8
commit
860ad3655f
@ -43,7 +43,7 @@ export const FeatureView = () => {
|
|||||||
const { refetch: projectRefetch } = useProject(projectId);
|
const { refetch: projectRefetch } = useProject(projectId);
|
||||||
const { favorite, unfavorite } = useFavoriteFeaturesApi();
|
const { favorite, unfavorite } = useFavoriteFeaturesApi();
|
||||||
const { refetchFeature } = useFeature(projectId, featureId);
|
const { refetchFeature } = useFeature(projectId, featureId);
|
||||||
const { isChangeRequestConfiguredInAnyEnv } =
|
const { isChangeRequestConfiguredInAnyEnv, isChangeRequestFlagEnabled } =
|
||||||
useChangeRequestsEnabled(projectId);
|
useChangeRequestsEnabled(projectId);
|
||||||
const { uiConfig } = useUiConfig();
|
const { uiConfig } = useUiConfig();
|
||||||
|
|
||||||
@ -103,6 +103,7 @@ export const FeatureView = () => {
|
|||||||
<MainLayout
|
<MainLayout
|
||||||
ref={ref}
|
ref={ref}
|
||||||
subheader={
|
subheader={
|
||||||
|
isChangeRequestFlagEnabled &&
|
||||||
isChangeRequestConfiguredInAnyEnv() ? (
|
isChangeRequestConfiguredInAnyEnv() ? (
|
||||||
<DraftBanner project={projectId} />
|
<DraftBanner project={projectId} />
|
||||||
) : null
|
) : null
|
||||||
|
@ -172,6 +172,7 @@ const Project = () => {
|
|||||||
<MainLayout
|
<MainLayout
|
||||||
ref={ref}
|
ref={ref}
|
||||||
subheader={
|
subheader={
|
||||||
|
isChangeRequestFlagEnabled &&
|
||||||
isChangeRequestConfiguredInAnyEnv() ? (
|
isChangeRequestConfiguredInAnyEnv() ? (
|
||||||
<DraftBanner project={projectId} />
|
<DraftBanner project={projectId} />
|
||||||
) : null
|
) : null
|
||||||
|
Loading…
Reference in New Issue
Block a user