mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-15 01:16:22 +02:00
Use info for unevaluated, not warning
This commit is contained in:
parent
afd24aa58a
commit
b707360e4e
@ -3,8 +3,8 @@ import { useTheme } from '@mui/material';
|
|||||||
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
|
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
|
||||||
import { ReactComponent as FeatureEnabledIcon } from 'assets/icons/isenabled-true.svg';
|
import { ReactComponent as FeatureEnabledIcon } from 'assets/icons/isenabled-true.svg';
|
||||||
import { ReactComponent as FeatureDisabledIcon } from 'assets/icons/isenabled-false.svg';
|
import { ReactComponent as FeatureDisabledIcon } from 'assets/icons/isenabled-false.svg';
|
||||||
import WarningOutlined from '@mui/icons-material/WarningOutlined';
|
|
||||||
import { Badge } from 'component/common/Badge/Badge';
|
import { Badge } from 'component/common/Badge/Badge';
|
||||||
|
import InfoOutlined from '@mui/icons-material/InfoOutlined';
|
||||||
|
|
||||||
interface IResultChipProps {
|
interface IResultChipProps {
|
||||||
enabled: boolean | 'unevaluated' | 'unknown';
|
enabled: boolean | 'unevaluated' | 'unknown';
|
||||||
@ -24,7 +24,7 @@ export const PlaygroundResultChip: VFC<IResultChipProps> = ({
|
|||||||
const icon = (
|
const icon = (
|
||||||
<ConditionallyRender
|
<ConditionallyRender
|
||||||
condition={enabled === 'unknown' || enabled === 'unevaluated'}
|
condition={enabled === 'unknown' || enabled === 'unevaluated'}
|
||||||
show={<WarningOutlined color={'warning'} fontSize='inherit' />}
|
show={<InfoOutlined color={'info'} fontSize='inherit' />}
|
||||||
elseShow={
|
elseShow={
|
||||||
<ConditionallyRender
|
<ConditionallyRender
|
||||||
condition={typeof enabled === 'boolean' && Boolean(enabled)}
|
condition={typeof enabled === 'boolean' && Boolean(enabled)}
|
||||||
@ -51,7 +51,7 @@ export const PlaygroundResultChip: VFC<IResultChipProps> = ({
|
|||||||
<ConditionallyRender
|
<ConditionallyRender
|
||||||
condition={enabled === 'unknown' || enabled === 'unevaluated'}
|
condition={enabled === 'unknown' || enabled === 'unevaluated'}
|
||||||
show={
|
show={
|
||||||
<Badge icon={showIcon ? icon : undefined} color='warning'>
|
<Badge icon={showIcon ? icon : undefined} color='info'>
|
||||||
{label}
|
{label}
|
||||||
</Badge>
|
</Badge>
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user