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:
parent
9c214858c7
commit
0a8330f55d
@ -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>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user