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

This commit is contained in:
Laura Fernández
2024-04-19 12:34:49 +02:00
committed by GitHub
parent 1ea7dc9250
commit c5ca90747d
2 changed files with 3 additions and 9 deletions
-3
View File
@@ -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>
);
};