瀏覽代碼

Fix up storybook

master
Eugen Rochko 7 年之前
父節點
當前提交
4d23a85c29
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. +2
    -0
      app/assets/stylesheets/components.scss
  2. +2
    -2
      storybook/stories/autosuggest_textarea.story.jsx

+ 2
- 0
app/assets/stylesheets/components.scss 查看文件

@@ -1,3 +1,5 @@
@import 'variables';

.button { .button {
background-color: darken($color4, 3%); background-color: darken($color4, 3%);
font-family: inherit; font-family: inherit;


+ 2
- 2
storybook/stories/autosuggest_textarea.story.jsx 查看文件

@@ -2,5 +2,5 @@ import { storiesOf } from '@kadira/storybook';
import AutosuggestTextarea from '../../app/assets/javascripts/components/components/autosuggest_textarea.jsx' import AutosuggestTextarea from '../../app/assets/javascripts/components/components/autosuggest_textarea.jsx'


storiesOf('AutosuggestTextarea', module) storiesOf('AutosuggestTextarea', module)
.add('default state', () => <AutosuggestTextarea />)
.add('with text', () => <AutosuggestTextarea value='Hello' />)
.add('default state', () => <AutosuggestTextarea value='' suggestions={[]} />)
.add('with text', () => <AutosuggestTextarea value='Hello' suggestions={[]} />)

Loading…
取消
儲存