View next unread story improvements

This commit is contained in:
Josh Perez 2022-04-28 14:59:09 -04:00 committed by GitHub
parent 9d3498d938
commit 84411fee38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 36 additions and 4 deletions

View file

@ -37,6 +37,7 @@ function getDefaultProps(): PropsType {
preferredReactionEmoji: ['❤️', '👍', '👎', '😂', '😮', '😢'],
queueStoryDownload: action('queueStoryDownload'),
renderEmojiPicker: () => <div />,
selectedStoryIndex: 0,
stories: [
{
attachment: fakeAttachment({
@ -106,11 +107,12 @@ story.add('Multi story', () => {
);
});
story.add('So many stories', () => {
story.add('So many stories (start on story 4)', () => {
const sender = getDefaultConversation();
return (
<StoryViewer
{...getDefaultProps()}
selectedStoryIndex={5}
stories={Array(20).fill({
attachment: fakeAttachment({
url: '/fixtures/snow.jpg',