mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-27 08:00:51 +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 '..';
|
import { SendMessageComposer } from '..';
|
||||||
|
|
||||||
export const ToggleFavoriteGroup = (group: HabboGroupEntryData) =>
|
export const ToggleFavoriteGroup = (group: HabboGroupEntryData) =>
|
||||||
{
|
{
|
||||||
// new GroupUnfavoriteComposer(group.groupId)
|
SendMessageComposer(group.favourite ? new GroupUnfavoriteComposer(group.groupId) : new GroupFavoriteComposer(group.groupId));
|
||||||
SendMessageComposer(group.favourite ? null : new GroupFavoriteComposer(group.groupId));
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user