mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
improvements
This commit is contained in:
parent
d202818f42
commit
54def95727
@ -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 =
|
||||
|
@ -21,7 +21,7 @@ export const PlaygroundResultFeatureStrategyList = ({
|
||||
return (
|
||||
<ConditionallyRender
|
||||
condition={
|
||||
!feature.isEnabled && feature.isEnabledInCurrentEnvironment
|
||||
!feature.isEnabledInCurrentEnvironment
|
||||
}
|
||||
show={
|
||||
<WrappedPlaygroundResultStrategyList
|
||||
|
@ -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 }) => ({
|
||||
|
Loading…
Reference in New Issue
Block a user