diff --git a/.betterer.results b/.betterer.results index dd20fd95ec3..64a60e0a5ca 100644 --- a/.betterer.results +++ b/.betterer.results @@ -823,10 +823,6 @@ exports[`better eslint`] = { "packages/grafana-ui/src/components/Alert/Toast.story.tsx:5381": [ [0, 0, 0, "\'VerticalGroup\' import from \'@grafana/ui\' is restricted from being used by a pattern. Use Stack component instead.", "0"] ], - "packages/grafana-ui/src/components/Button/Button.story.tsx:5381": [ - [0, 0, 0, "\'HorizontalGroup\' import from \'../Layout/Layout\' is restricted from being used by a pattern. Use Stack component instead.", "0"], - [0, 0, 0, "\'VerticalGroup\' import from \'../Layout/Layout\' is restricted from being used by a pattern. Use Stack component instead.", "1"] - ], "packages/grafana-ui/src/components/ColorPicker/ColorPicker.tsx:5381": [ [0, 0, 0, "Unexpected any. Specify a different type.", "0"], [0, 0, 0, "Unexpected any. Specify a different type.", "1"] diff --git a/packages/grafana-ui/src/components/Button/Button.story.tsx b/packages/grafana-ui/src/components/Button/Button.story.tsx index 064b9f254ef..517cf9089ba 100644 --- a/packages/grafana-ui/src/components/Button/Button.story.tsx +++ b/packages/grafana-ui/src/components/Button/Button.story.tsx @@ -3,7 +3,7 @@ import React from 'react'; import { ComponentSize } from '../../types'; import { Card } from '../Card/Card'; -import { HorizontalGroup, VerticalGroup } from '../Layout/Layout'; +import { Stack } from '../Layout/Stack/Stack'; import { allButtonVariants, allButtonFills, Button, ButtonProps } from './Button'; import mdx from './Button.mdx'; @@ -36,12 +36,12 @@ export default { export const Examples: StoryFn = () => { return ( - + {allButtonFills.map((buttonFill) => ( - - + + {allButtonVariants.map((variant) => ( - + {sizes.map((size) => ( - + ))} - +
- + ))} - +
With icon and text
-
+
- +
Inside ButtonGroup
- +
); };