-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ActivityStream): implement component default state
- Loading branch information
Showing
4 changed files
with
965 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 11 additions & 5 deletions
16
src/components/WebexActivityStream/WebexActivityStream.stories.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
import React from 'react'; | ||
import {storiesOf} from '@storybook/react'; | ||
|
||
import RoomsJSONAdapter from '../../adapters/RoomsJSONAdapter'; | ||
import rooms from '../../data/rooms'; | ||
import {ActivitiesJSONAdapter, PeopleJSONAdapter, RoomsJSONAdapter} from '../../adapters'; | ||
import {activities, people, rooms} from '../../data'; | ||
|
||
import WebexActivityStream from './WebexActivityStream'; | ||
|
||
// Setup for the stories | ||
const stories = storiesOf('Webex Activity Stream', module); | ||
const adapter = new RoomsJSONAdapter(rooms); | ||
const adapters = { | ||
roomsAdapter: new RoomsJSONAdapter(rooms), | ||
activitiesAdapter: new ActivitiesJSONAdapter(activities), | ||
peopleAdapter: new PeopleJSONAdapter(people), | ||
}; | ||
|
||
// Stories | ||
stories.add('empty group stream', () => <WebexActivityStream roomID="default" adapter={adapter} />); | ||
stories.add('default', () => <WebexActivityStream roomID="default" adapters={adapters} />); | ||
|
||
stories.add('empty 1:1 stream', () => <WebexActivityStream roomID="direct" adapter={adapter} />); | ||
stories.add('empty group stream', () => <WebexActivityStream roomID="empty-space" adapters={adapters} />); | ||
|
||
stories.add('empty 1:1 stream', () => <WebexActivityStream roomID="empty-direct" adapters={adapters} />); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.