mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-14 00:19:16 +01:00
34 lines
1.0 KiB
TypeScript
34 lines
1.0 KiB
TypeScript
|
import { HtmlTooltip } from 'component/common/HtmlTooltip/HtmlTooltip';
|
||
|
import { WarningAmber } from '@mui/icons-material';
|
||
|
import { styled } from '@mui/material';
|
||
|
|
||
|
const StyledWarningAmber = styled(WarningAmber)(({ theme }) => ({
|
||
|
color: theme.palette.warning.main,
|
||
|
fontSize: theme.fontSizes.bodySize,
|
||
|
}));
|
||
|
|
||
|
const VariantsWarningTooltip = () => {
|
||
|
return (
|
||
|
<HtmlTooltip
|
||
|
arrow
|
||
|
title={
|
||
|
<>
|
||
|
This environment has no variants enabled. If you check this
|
||
|
feature's variants in this environment, you will get the{' '}
|
||
|
<a
|
||
|
href="https://docs.getunleash.io/reference/feature-toggle-variants#the-disabled-variant"
|
||
|
target="_blank"
|
||
|
>
|
||
|
disabled variant
|
||
|
</a>
|
||
|
.
|
||
|
</>
|
||
|
}
|
||
|
>
|
||
|
<StyledWarningAmber />
|
||
|
</HtmlTooltip>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default VariantsWarningTooltip;
|