diff --git a/packages/grafana-ui/src/components/Switch/Switch.story.tsx b/packages/grafana-ui/src/components/Switch/Switch.story.tsx index 76594e3272d..12bbef7d675 100644 --- a/packages/grafana-ui/src/components/Switch/Switch.story.tsx +++ b/packages/grafana-ui/src/components/Switch/Switch.story.tsx @@ -33,8 +33,8 @@ export const Controlled: StoryFn = (args) => {
- - + +
diff --git a/packages/grafana-ui/src/components/Switch/Switch.tsx b/packages/grafana-ui/src/components/Switch/Switch.tsx index 462d517cd9b..bee3ea4949f 100644 --- a/packages/grafana-ui/src/components/Switch/Switch.tsx +++ b/packages/grafana-ui/src/components/Switch/Switch.tsx @@ -6,6 +6,7 @@ import { GrafanaTheme2, deprecationWarning } from '@grafana/data'; import { useStyles2 } from '../../themes'; import { getFocusStyles, getMouseFocusStyles } from '../../themes/mixins'; +import { Icon } from '../Icon/Icon'; export interface Props extends Omit, 'value'> { value?: boolean; @@ -35,7 +36,9 @@ export const Switch = React.forwardRef( {...inputProps} ref={ref} /> -