🆙 Nitro V3.5.0

This commit is contained in:
duckietm
2026-05-20 12:57:10 +02:00
parent 03795f975d
commit 9c7f630d16
@@ -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">