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