UI for when read receipts are turned off
This commit is contained in:
parent
7632f31cf2
commit
39143015c5
8 changed files with 135 additions and 33 deletions
|
@ -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)';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue