1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

fix: remove toggles using this strategy (#3022)

This commit is contained in:
Tymoteusz Czech 2023-01-31 08:02:24 +01:00 committed by GitHub
parent 9c214858c7
commit 0a8330f55d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,17 +84,22 @@ export const StrategyDetails = ({
<List>{renderParameters(parameters)}</List>
</Grid>
<Grid item sm={12} md={6}>
<Grid item sm={12} md={toggles.length > 0 ? 6 : 12}>
<h6>Applications using this strategy</h6>
<hr />
<AppsLinkList apps={applications} />
</Grid>
<Grid item sm={12} md={6}>
<h6>Toggles using this strategy</h6>
<hr />
<TogglesLinkList toggles={toggles} />
</Grid>
<ConditionallyRender
condition={toggles.length > 0}
show={() => (
<Grid item sm={12} md={6}>
<h6>Toggles using this strategy</h6>
<hr />
<TogglesLinkList toggles={toggles} />
</Grid>
)}
/>
</Grid>
</div>
);