Grafana UI: `TagsInput.story.tsx` - Delete unnecessary `VerticalGroup` (#86582)

pull/86539/head^2
Laura Fernández 1 year ago committed by GitHub
parent 1ea7dc9250
commit c5ca90747d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      .betterer.results
  2. 9
      packages/grafana-ui/src/components/TagsInput/TagsInput.story.tsx

@ -958,9 +958,6 @@ exports[`better eslint`] = {
"packages/grafana-ui/src/components/Tags/Tag.tsx:5381": [
[0, 0, 0, "Do not use any type assertions.", "0"]
],
"packages/grafana-ui/src/components/TagsInput/TagsInput.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/Text/Text.story.tsx:5381": [
[0, 0, 0, "\'VerticalGroup\' import from \'../Layout/Layout\' is restricted from being used by a pattern. Use Stack component instead.", "0"]
],

@ -2,7 +2,6 @@ import { Meta, StoryFn } from '@storybook/react';
import React, { useState } from 'react';
import { StoryExample } from '../../utils/storybook/StoryExample';
import { VerticalGroup } from '../Layout/Layout';
import { TagsInput } from './TagsInput';
import mdx from './TagsInput.mdx';
@ -28,11 +27,9 @@ export const Basic: StoryFn<typeof TagsInput> = (props) => {
export const WithManyTags = () => {
const [tags, setTags] = useState<string[]>(['dashboard', 'prod', 'server', 'frontend', 'game', 'kubernetes']);
return (
<VerticalGroup>
<StoryExample name="With many tags">
<TagsInput tags={tags} onChange={setTags} />
</StoryExample>
</VerticalGroup>
<StoryExample name="With many tags">
<TagsInput tags={tags} onChange={setTags} />
</StoryExample>
);
};

Loading…
Cancel
Save