mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 15:06:20 +00:00
🆙 Nitro V3.5.0
This commit is contained in:
@@ -111,6 +111,13 @@ export const AvatarEffectsView: FC<{}> = () =>
|
||||
setIsVisible(false);
|
||||
}, [ selectedId ]);
|
||||
|
||||
const removeCurrentEffect = useCallback(() =>
|
||||
{
|
||||
SendMessageComposer(new AvatarEffectActivatedComposer(0));
|
||||
setSelectedId(0);
|
||||
setIsVisible(false);
|
||||
}, []);
|
||||
|
||||
const onClose = useCallback(() => setIsVisible(false), []);
|
||||
|
||||
const filteredEffects = useMemo(() =>
|
||||
@@ -194,9 +201,14 @@ export const AvatarEffectsView: FC<{}> = () =>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<Button variant="success" disabled={ !selectedId } onClick={ applySelectedEffect } className="w-full mt-2">
|
||||
{ LocalizeText('inventory.effects.activate') || 'Use' }
|
||||
</Button>
|
||||
<div className="flex gap-1 mt-2">
|
||||
<Button variant="success" disabled={ !selectedId } onClick={ applySelectedEffect } className="flex-1">
|
||||
{ LocalizeText('inventory.effects.activate') || 'Use effect' }
|
||||
</Button>
|
||||
<Button variant="danger" onClick={ removeCurrentEffect } className="flex-1">
|
||||
{ LocalizeText('inventory.effects.remove') || 'Remove effect' }
|
||||
</Button>
|
||||
</div>
|
||||
</Column>
|
||||
<Column overflow="hidden" className="flex-1 min-h-0">
|
||||
<div className="relative">
|
||||
|
||||
Reference in New Issue
Block a user