Skip to content

Commit

Permalink
fix: remove toggles using this strategy (#3022)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymek committed Jan 31, 2023
1 parent 9c21485 commit 0a8330f
Showing 1 changed file with 11 additions and 6 deletions.
Expand Up @@ -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>
);
Expand Down

0 comments on commit 0a8330f

Please sign in to comment.