Skip to content

Commit

Permalink
reword delete project active items section
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymek committed Jul 5, 2024
1 parent c1a42a2 commit 131c8c9
Showing 1 changed file with 24 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,27 +49,31 @@ export const DeleteProject = ({
.
</p>
<ConditionallyRender
condition={featureCount > 0 || actionsCount > 0}
condition={featureCount > 0}
show={
<>
<p>
Currently there are{' '}
<strong>{featureCount} feature flags active</strong>
</p>
<ConditionallyRender
condition={
isEnterprise() && automatedActionsEnabled
}
show={
<p>
Currently there are{' '}
<strong>
{actionsCount} enabled actions
</strong>
</p>
}
/>
</>
<p>
Currently there {featureCount <= 1 ? 'is' : 'are'}{' '}
<strong>
{featureCount} feature{' '}
{featureCount === 1 ? 'flag' : 'flags'} active.
</strong>
</p>
}
/>
<ConditionallyRender
condition={
isEnterprise() &&
automatedActionsEnabled &&
actionsCount > 0
}
show={
<p>
Currently there {actionsCount <= 1 ? 'is' : 'are'}{' '}
<strong>
{actionsCount} enabled{' '}
{actionsCount === 1 ? 'action' : 'actions'}.
</strong>
</p>
}
/>
<p>
Expand Down

0 comments on commit 131c8c9

Please sign in to comment.