diff --git a/.betterer.results b/.betterer.results index ec6320fa7de..650429be0be 100644 --- a/.betterer.results +++ b/.betterer.results @@ -797,9 +797,6 @@ exports[`better eslint`] = { [0, 0, 0, "Unexpected any. Specify a different type.", "0"], [0, 0, 0, "Unexpected any. Specify a different type.", "1"] ], - "packages/grafana-ui/src/components/Forms/Checkbox.story.tsx:5381": [ - [0, 0, 0, "\'VerticalGroup\' import from \'../Layout/Layout\' is restricted from being used by a pattern. Use Stack component instead.", "0"] - ], "packages/grafana-ui/src/components/Forms/FieldArray.story.tsx:5381": [ [0, 0, 0, "\'HorizontalGroup\' import from \'@grafana/ui\' is restricted from being used by a pattern. Use Stack component instead.", "0"] ], diff --git a/packages/grafana-ui/src/components/Forms/Checkbox.story.tsx b/packages/grafana-ui/src/components/Forms/Checkbox.story.tsx index cd9e7a3ebd5..6ce2c1907bf 100644 --- a/packages/grafana-ui/src/components/Forms/Checkbox.story.tsx +++ b/packages/grafana-ui/src/components/Forms/Checkbox.story.tsx @@ -1,7 +1,7 @@ import { Meta, StoryFn } from '@storybook/react'; import React, { useState, useCallback } from 'react'; -import { VerticalGroup } from '../Layout/Layout'; +import { Stack } from '../Layout/Stack/Stack'; import { Checkbox } from './Checkbox'; import mdx from './Checkbox.mdx'; @@ -26,11 +26,7 @@ export const Basic: StoryFn = (args) => { (e: React.FormEvent) => setChecked(e.currentTarget.checked), [setChecked] ); - return ( -
- -
- ); + return ; }; Basic.args = { @@ -44,7 +40,7 @@ Basic.args = { export const StackedList = () => { return (
- + { label="Another checkbox times 2" description="Another long description that does not make any sense or does it?" /> - +
); }; export const InAField: StoryFn = (args) => { return ( -
- - - -
+ + + ); }; @@ -93,14 +87,14 @@ export const AllStates: StoryFn = (args) => { return (
- + - +
); };