forked from Ivasoft/mattermost-mobile
[MM-42565] Toast - Follow/Unfollow thread with undo functionality (#7267)
This commit is contained in:
committed by
GitHub
parent
2658d62c9c
commit
265c4fe8a6
@@ -47,3 +47,10 @@ export const showRemoveChannelUserSnackbar = () => {
|
||||
sourceScreen: Screens.MANAGE_CHANNEL_MEMBERS,
|
||||
});
|
||||
};
|
||||
|
||||
export const showThreadFollowingSnackbar = (following: boolean, onAction: () => void) => {
|
||||
return showSnackBar({
|
||||
onAction,
|
||||
barType: following ? SNACK_BAR_TYPE.FOLLOW_THREAD : SNACK_BAR_TYPE.UNFOLLOW_THREAD,
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user