mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +01:00
Add GroupUnfavoriteComposer
This commit is contained in:
parent
7364fa3d99
commit
2fb6e7ebb3
@ -1,8 +1,7 @@
|
||||
import { GroupFavoriteComposer, HabboGroupEntryData } from '@nitrots/nitro-renderer';
|
||||
import { GroupFavoriteComposer, GroupUnfavoriteComposer, HabboGroupEntryData } from '@nitrots/nitro-renderer';
|
||||
import { SendMessageComposer } from '..';
|
||||
|
||||
export const ToggleFavoriteGroup = (group: HabboGroupEntryData) =>
|
||||
{
|
||||
// new GroupUnfavoriteComposer(group.groupId)
|
||||
SendMessageComposer(group.favourite ? null : new GroupFavoriteComposer(group.groupId));
|
||||
SendMessageComposer(group.favourite ? new GroupUnfavoriteComposer(group.groupId) : new GroupFavoriteComposer(group.groupId));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user