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>
|
<List>{renderParameters(parameters)}</List>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<Grid item sm={12} md={6}>
|
<Grid item sm={12} md={toggles.length > 0 ? 6 : 12}>
|
||||||
<h6>Applications using this strategy</h6>
|
<h6>Applications using this strategy</h6>
|
||||||
<hr />
|
<hr />
|
||||||
<AppsLinkList apps={applications} />
|
<AppsLinkList apps={applications} />
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
|
<ConditionallyRender
|
||||||
|
condition={toggles.length > 0}
|
||||||
|
show={() => (
|
||||||
<Grid item sm={12} md={6}>
|
<Grid item sm={12} md={6}>
|
||||||
<h6>Toggles using this strategy</h6>
|
<h6>Toggles using this strategy</h6>
|
||||||
<hr />
|
<hr />
|
||||||
<TogglesLinkList toggles={toggles} />
|
<TogglesLinkList toggles={toggles} />
|
||||||
</Grid>
|
</Grid>
|
||||||
|
)}
|
||||||
|
/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user