1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

improvements

This commit is contained in:
andreas-unleash 2022-08-03 16:43:47 +03:00
parent d202818f42
commit 54def95727
3 changed files with 4 additions and 4 deletions

View File

@ -35,10 +35,10 @@ export const PlaygroundResultFeatureDetails = ({
const reason =
feature.isEnabled === 'unevaluated'
? 'custom strategies are not evaluated yet'
: !feature.isEnabledInCurrentEnvironment
? 'the environment is disabled'
: feature.isEnabled
? 'at least one strategy is True'
: feature?.isEnabledInCurrentEnvironment
? 'the environment is disabled'
: 'all strategies are False';
const color =

View File

@ -21,7 +21,7 @@ export const PlaygroundResultFeatureStrategyList = ({
return (
<ConditionallyRender
condition={
!feature.isEnabled && feature.isEnabledInCurrentEnvironment
!feature.isEnabledInCurrentEnvironment
}
show={
<WrappedPlaygroundResultStrategyList

View File

@ -3,7 +3,7 @@ import { Box, styled } from '@mui/material';
import { PlaygroundResultChip } from '../PlaygroundResultChip/PlaygroundResultChip';
interface IFeatureStatusCellProps {
enabled: boolean;
enabled: boolean | 'unknown';
}
const StyledCellBox = styled(Box)(({ theme }) => ({