2017-08-17 19:31:27 +00:00
|
|
|
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */
|
|
|
|
|
2017-12-08 19:36:03 +00:00
|
|
|
import React from 'react';
|
|
|
|
import { Provider } from 'react-redux';
|
|
|
|
|
|
|
|
import { createStore, combineReducers } from 'redux';
|
|
|
|
|
2017-08-17 19:31:27 +00:00
|
|
|
|
|
|
|
import { storiesOf } from '@storybook/react-native';
|
|
|
|
|
|
|
|
import DirectMessage from './Channels/DirectMessage';
|
2017-09-01 19:42:50 +00:00
|
|
|
import Avatar from './Avatar';
|
2018-09-11 16:32:52 +00:00
|
|
|
import Message from './Message';
|
2017-08-17 19:31:27 +00:00
|
|
|
|
2018-06-13 01:29:18 +00:00
|
|
|
const reducers = combineReducers({ settings: () => ({}), login: () => ({ user: {} }), meteor: () => ({ connected: true }) });
|
2017-12-08 19:36:03 +00:00
|
|
|
const store = createStore(reducers);
|
|
|
|
|
|
|
|
storiesOf('Avatar', module).addDecorator(story => <Provider store={store}>{story()}</Provider>).add('avatar', () => Avatar);
|
|
|
|
storiesOf('Channel Cell', module).addDecorator(story => <Provider store={store}>{story()}</Provider>).add('Direct Messages', () => DirectMessage);
|
2018-09-11 16:32:52 +00:00
|
|
|
storiesOf('Message', module)
|
|
|
|
.add('list', () => Message);
|