1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-04 00:18:01 +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 = const reason =
feature.isEnabled === 'unevaluated' feature.isEnabled === 'unevaluated'
? 'custom strategies are not evaluated yet' ? 'custom strategies are not evaluated yet'
: !feature.isEnabledInCurrentEnvironment
? 'the environment is disabled'
: feature.isEnabled : feature.isEnabled
? 'at least one strategy is True' ? 'at least one strategy is True'
: feature?.isEnabledInCurrentEnvironment
? 'the environment is disabled'
: 'all strategies are False'; : 'all strategies are False';
const color = const color =

View File

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

View File

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