From c5a0f8e9d850c93119db7cc74ca3fb49b7e0bff3 Mon Sep 17 00:00:00 2001 From: meriadec Date: Wed, 14 Mar 2018 15:26:25 +0100 Subject: [PATCH] Update storybook --- src/components/RequestAmount/stories.js | 9 ++++++--- src/components/base/InputCurrency/stories.js | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/components/RequestAmount/stories.js b/src/components/RequestAmount/stories.js index 88da2a92..2e08839a 100644 --- a/src/components/RequestAmount/stories.js +++ b/src/components/RequestAmount/stories.js @@ -4,12 +4,13 @@ import React from 'react' import { storiesOf } from '@storybook/react' import { action } from '@storybook/addon-actions' import { number } from '@storybook/addon-knobs' +import { translate } from 'react-i18next' import { accounts } from 'components/SelectAccount/stories' import { RequestAmount } from 'components/RequestAmount' -const stories = storiesOf('Components/RequestAmount', module) +const stories = storiesOf('Components', module) const props = { counterValue: 'USD', @@ -17,8 +18,10 @@ const props = { account: accounts[0], } -stories.add('basic', () => ( - ( + k} onChange={action('onChange')} diff --git a/src/components/base/InputCurrency/stories.js b/src/components/base/InputCurrency/stories.js index 3752604a..dbf9d25d 100644 --- a/src/components/base/InputCurrency/stories.js +++ b/src/components/base/InputCurrency/stories.js @@ -8,8 +8,8 @@ import { getDefaultUnitByCoinType } from '@ledgerhq/currencies' import InputCurrency from 'components/base/InputCurrency' -const stories = storiesOf('Components/InputCurrency', module) +const stories = storiesOf('Components', module) const unit = getDefaultUnitByCoinType(1) -stories.add('basic', () => ) +stories.add('InputCurrency', () => )