Merge pull request #15206 from grafana/storybook/valuemappingseditor

Adding ValueMappingsEditor to Storybook
pull/15243/head
Torkel Ödegaard 7 years ago committed by GitHub
commit 7d5becceb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      packages/grafana-ui/src/components/ValueMappingsEditor/ValueMappingsEditor.story.tsx

@ -0,0 +1,10 @@
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { ValueMappingsEditor } from './ValueMappingsEditor';
const ValueMappingsEditorStories = storiesOf('UI/ValueMappingsEditor', module);
ValueMappingsEditorStories.add('default', () => {
return <ValueMappingsEditor valueMappings={[]} onChange={action('Mapping changed')} />;
});
Loading…
Cancel
Save