Commit 4971ce6a by Alex Khomenko Committed by GitHub

Grafana-toolkit: Update component generator templates (#30306)

* Grafana-toolkit: Update component generator templates

* Update story name
parent 75e94784
export const testTpl = `
import React from 'react';
import { shallow } from 'enzyme';
import { render, screen } from '@testing-library/react';
import { <%= name %> } from './<%= name %>';
......
export const docsTpl = `import { Story, Preview, Props } from '@storybook/addon-docs/blocks';
export const docsTpl = `import { ArgsTable } from '@storybook/addon-docs/blocks';
import { <%= name %> } from './<%= name %>';
# <%= name %>
......@@ -12,5 +12,5 @@ import { <%= name %> } from '@grafana/ui';
\`\`\`
### Props
<Props of={<%= name %>} />
<ArgsTable of={<%= name %>} />
`;
......@@ -16,7 +16,7 @@ export default {
},
};
export const single = () => {
export const Basic = () => {
return <<%= name %> />;
};
`;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment