UI for when read receipts are turned off

This commit is contained in:
Josh Perez 2022-08-31 12:11:14 -04:00 committed by GitHub
parent 7632f31cf2
commit 39143015c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 135 additions and 33 deletions

View file

@ -31,6 +31,9 @@ export default {
hasAllStoriesMuted: {
defaultValue: false,
},
hasReadReceiptSetting: {
defaultValue: true,
},
i18n: {
defaultValue: i18n,
},
@ -168,3 +171,35 @@ export const YourStory = Template.bind({});
};
YourStory.storyName = 'Your story';
}
export const ReadReceiptsOff = Template.bind({});
{
const storyView = getFakeStoryView(
'/fixtures/nathan-anderson-316188-unsplash.jpg'
);
ReadReceiptsOff.args = {
hasReadReceiptSetting: false,
story: {
...storyView,
sender: {
...storyView.sender,
isMe: true,
},
sendState: [
{
recipient: getDefaultConversation(),
status: SendStatus.Viewed,
},
{
recipient: getDefaultConversation(),
status: SendStatus.Delivered,
},
{
recipient: getDefaultConversation(),
status: SendStatus.Pending,
},
],
},
};
}
ReadReceiptsOff.storyName = 'Read receipts turned off';