mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 06:40:50 +01:00
Open avatar editor from context menu
This commit is contained in:
parent
629d231887
commit
ac392c71cf
@ -1,6 +1,8 @@
|
||||
import { AvatarAction, AvatarExpressionEnum, RoomObjectCategory } from 'nitro-renderer';
|
||||
import { FC, useCallback, useState } from 'react';
|
||||
import { GetCanStandUp, GetCanUseExpression, GetOwnPosture, HasHabboClub, HasHabboVip, IsRidingHorse } from '../../../../../../api';
|
||||
import { AvatarEditorEvent } from '../../../../../../events';
|
||||
import { dispatchUiEvent } from '../../../../../../hooks';
|
||||
import { LocalizeText } from '../../../../../../utils/LocalizeText';
|
||||
import { CurrencyIcon } from '../../../../../shared/currency-icon/CurrencyIcon';
|
||||
import { useRoomContext } from '../../../../context/RoomContext';
|
||||
@ -43,6 +45,7 @@ export const AvatarInfoWidgetOwnAvatarView: FC<AvatarInfoWidgetOwnAvatarViewProp
|
||||
setIsDecorating(true);
|
||||
break;
|
||||
case 'change_looks':
|
||||
dispatchUiEvent(new AvatarEditorEvent(AvatarEditorEvent.SHOW_EDITOR));
|
||||
break;
|
||||
case 'expressions':
|
||||
hideMenu = false;
|
||||
|
Loading…
Reference in New Issue
Block a user