Story updates

This commit is contained in:
Dominik Prokop 2019-01-21 12:16:32 +01:00
parent b560dcac3d
commit 597cbb5b9b

View File

@ -1,7 +1,7 @@
import React, { FunctionComponent } from 'react'; import React, { FunctionComponent } from 'react';
import { storiesOf } from '@storybook/react'; import { storiesOf } from '@storybook/react';
import { ColorPicker } from './ColorPicker'; import SeriesColorPicker from './SeriesColorPicker';
import { SeriesColorPicker } from './SeriesColorPicker'; import ColorPicker from './ColorPicker';
import { UseState } from './NamedColorsPalette.story'; import { UseState } from './NamedColorsPalette.story';
import { withKnobs, select } from '@storybook/addon-knobs'; import { withKnobs, select } from '@storybook/addon-knobs';
import { GrafanaTheme } from '../../types'; import { GrafanaTheme } from '../../types';
@ -69,7 +69,7 @@ ColorPickerStories.add('Series color picker', () => {
onChange={color => updateSelectedColor(color)} onChange={color => updateSelectedColor(color)}
theme={selectedTheme || undefined} theme={selectedTheme || undefined}
> >
<div style={{ color: selectedColor }}>Open color picker</div> <div style={{ color: selectedColor, cursor: 'pointer' }} >Open color picker</div>
</SeriesColorPicker> </SeriesColorPicker>
); );
}} }}