mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Grafana-toolkit: Update component generator templates (#30306)
* Grafana-toolkit: Update component generator templates * Update story name
This commit is contained in:
parent
75e9478485
commit
4971ce6a3c
@ -1,6 +1,6 @@
|
||||
export const testTpl = `
|
||||
import React from 'react';
|
||||
import { shallow } from 'enzyme';
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import { <%= name %> } from './<%= name %>';
|
||||
|
||||
|
||||
|
@ -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 %>';
|
||||
|
||||
# <%= 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 %> />;
|
||||
};
|
||||
`;
|
||||
|
Loading…
Reference in New Issue
Block a user