mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
first stuff
This commit is contained in:
parent
116e70740c
commit
bd6fed54de
@ -0,0 +1,20 @@
|
||||
import React from 'react';
|
||||
import { storiesOf } from '@storybook/react';
|
||||
import { action } from '@storybook/addon-actions';
|
||||
import { ValueMappingsEditor } from './ValueMappingsEditor';
|
||||
import { withCenteredStory } from '../../utils/storybook/withCenteredStory';
|
||||
|
||||
const ValueMappingsEditorStories = storiesOf('UI/ValueMappingsEditor', module);
|
||||
|
||||
ValueMappingsEditorStories.addDecorator(withCenteredStory);
|
||||
|
||||
ValueMappingsEditorStories.add('default', () => {
|
||||
return (
|
||||
<ValueMappingsEditor
|
||||
valueMappings={[]}
|
||||
onChange={() => {
|
||||
action('Mapping changed');
|
||||
}}
|
||||
/>
|
||||
);
|
||||
});
|
Loading…
Reference in New Issue
Block a user