File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/features/advanced-content-insights Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,15 @@ import messages from './messages';
1111import './AdvancedContentInsightsToggle.scss' ;
1212
1313interface Props {
14+ hasDescription ?: boolean ;
1415 hasTooltip ?: boolean ;
1516 isChecked ?: boolean ;
1617 isDisabled : boolean ;
1718 onChange ?: ( isEnabled : boolean ) => void ;
1819}
1920
2021const AdvancedContentInsightsToggle = ( {
22+ hasDescription,
2123 hasTooltip = true ,
2224 isChecked = false ,
2325 isDisabled,
@@ -45,7 +47,7 @@ const AdvancedContentInsightsToggle = ({
4547 < Toggle
4648 className = "AdvancedContentInsightsToggle"
4749 data-testid = "insights-toggle"
48- description = { ! hasTooltip && ! isChecked && description }
50+ description = { ! hasTooltip && hasDescription && description }
4951 isDisabled = { isDisabled }
5052 isOn = { isChecked }
5153 label = { label }
You can’t perform that action at this time.
0 commit comments