Rocket.Chat.ReactNative/storybook/stories/Channels/DirectMessage.js

91 lines
2.7 KiB
JavaScript
Raw Normal View History

2017-08-17 19:31:27 +00:00
import React from 'react';
import { ScrollView } from 'react-native';
2017-09-01 19:32:07 +00:00
import RoomItem from '../../../app/presentation/RoomItem';
2017-08-17 19:31:27 +00:00
const date = '2017-10-10T10:00:00Z';
const baseUrl = 'https://open.rocket.chat';
2017-11-08 20:46:59 +00:00
2017-08-17 19:31:27 +00:00
export default (
<ScrollView>
<RoomItem
type='d'
name='rocket.cat'
2017-11-08 20:46:59 +00:00
_updatedAt={date}
baseUrl={baseUrl}
2017-08-17 19:31:27 +00:00
/>
<RoomItem
type='d'
unread={0}
alert
2017-11-08 20:46:59 +00:00
_updatedAt={date}
2017-08-17 19:31:27 +00:00
name='rocket.cat'
baseUrl={baseUrl}
2017-08-17 19:31:27 +00:00
/>
<RoomItem
type='d'
unread={1}
2017-11-08 20:46:59 +00:00
_updatedAt={date}
2017-08-17 19:31:27 +00:00
name='rocket.cat'
baseUrl={baseUrl}
2017-08-17 19:31:27 +00:00
/>
<RoomItem
type='d'
unread={9}
alert
2017-11-08 20:46:59 +00:00
_updatedAt={date}
2017-08-17 19:31:27 +00:00
name="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries"
baseUrl={baseUrl}
2017-08-17 19:31:27 +00:00
/>
<RoomItem
type='d'
unread={99}
2017-11-08 20:46:59 +00:00
_updatedAt={date}
2017-08-17 19:31:27 +00:00
name="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries"
baseUrl={baseUrl}
2017-08-17 19:31:27 +00:00
/>
<RoomItem
type='d'
unread={100}
userMentions={0}
2017-11-08 20:46:59 +00:00
_updatedAt={date}
2017-08-17 19:31:27 +00:00
name="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries"
baseUrl={baseUrl}
2017-08-17 19:31:27 +00:00
/>
<RoomItem
type='d'
unread={100000}
userMentions={0}
_updatedAt={date}
name="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries"
baseUrl={baseUrl}
/>
<RoomItem
type='d'
unread={100000}
userMentions={1}
2017-11-08 20:46:59 +00:00
_updatedAt={date}
2017-08-17 19:31:27 +00:00
name="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries"
baseUrl={baseUrl}
2017-08-17 19:31:27 +00:00
/>
<RoomItem
type='d'
name='W'
2017-11-08 20:46:59 +00:00
_updatedAt={date}
2017-08-17 19:31:27 +00:00
unread={-100}
/>
<RoomItem
type='d'
name='WW'
2017-11-08 20:46:59 +00:00
_updatedAt={date}
2017-08-17 19:31:27 +00:00
unread={-100}
/>
<RoomItem
type='d'
name=''
2017-11-08 20:46:59 +00:00
_updatedAt={date}
2017-08-17 19:31:27 +00:00
unread={-100}
/>
</ScrollView>
);