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

@ -28,6 +28,9 @@ export default {
defaultValue: true,
},
getPreferredBadge: { action: true },
hasReadReceiptSetting: {
defaultValue: true,
},
i18n: {
defaultValue: i18n,
},
@ -202,3 +205,23 @@ export const InAGroupCantReply = Template.bind({});
};
}
InAGroupCantReply.storyName = "In a group (can't reply)";
export const ReadReceiptsTurnedOff = Template.bind({});
ReadReceiptsTurnedOff.args = {
canReply: false,
hasReadReceiptSetting: false,
views: getViewsAndReplies().views,
};
ReadReceiptsTurnedOff.storyName = 'Read receipts turned off';
export const GroupReadReceiptsOff = Template.bind({});
{
const { views, replies } = getViewsAndReplies();
GroupReadReceiptsOff.args = {
hasReadReceiptSetting: false,
isGroupStory: true,
replies,
views,
};
}
GroupReadReceiptsOff.storyName = 'Read receipts turned off (group)';