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

* Grafana-toolkit: Update component generator templates

* Update story name
This commit is contained in:
Alex Khomenko 2021-01-16 11:31:54 +02:00 committed by GitHub
parent 75e9478485
commit 4971ce6a3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
export const testTpl = ` export const testTpl = `
import React from 'react'; import React from 'react';
import { shallow } from 'enzyme'; import { render, screen } from '@testing-library/react';
import { <%= name %> } from './<%= name %>'; import { <%= name %> } from './<%= name %>';

View File

@ -1,4 +1,4 @@
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 %>'; import { <%= name %> } from './<%= name %>';
# <%= name %> # <%= name %>
@ -12,5 +12,5 @@ import { <%= name %> } from '@grafana/ui';
\`\`\` \`\`\`
### Props ### Props
<Props of={<%= name %>} /> <ArgsTable of={<%= name %>} />
`; `;

View File

@ -16,7 +16,7 @@ export default {
}, },
}; };
export const single = () => { export const Basic = () => {
return <<%= name %> />; return <<%= name %> />;
}; };
`; `;