1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-05 17:53:12 +02:00

Chore: wrap component in flag

This commit is contained in:
Thomas Heartman 2024-07-23 09:36:20 +02:00
parent 9edf7206be
commit 9530f49117
No known key found for this signature in database
GPG Key ID: BD1F880DAED1EE78

View File

@ -160,6 +160,7 @@ export const FeatureView = () => {
const [openStaleDialog, setOpenStaleDialog] = useState(false);
const [isFeatureNameCopied, setIsFeatureNameCopied] = useState(false);
const smallScreen = useMediaQuery(`(max-width:${500}px)`);
const showCollaborators = useUiFlag('featureCollaborators');
const { feature, loading, error, status } = useFeature(
projectId,
@ -376,7 +377,14 @@ export const FeatureView = () => {
/>
))}
</Tabs>
<Collaborators collaborators={feature.collaborators} />
<ConditionallyRender
condition={showCollaborators}
show={
<Collaborators
collaborators={feature.collaborators}
/>
}
/>
</StyledTabRow>
</StyledHeader>
<Routes>