mirror of
https://github.com/grafana/grafana.git
synced 2026-08-26 13:27:30 -05:00
Grafana UI: TagsInput.story.tsx - Delete unnecessary VerticalGroup (#86582)
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user