mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-22 22:30:52 +01:00
Merge branch 'fix-wired-wearing-avatar-effect' into 'dev'
Fix issue #261 - WiredConditionActorIsWearingEffectView See merge request nitro/nitro-react!87
This commit is contained in:
commit
b91f5eaed8
@ -13,13 +13,13 @@ export const WiredConditionActorIsWearingEffectView: FC<{}> = props =>
|
||||
|
||||
useEffect(() =>
|
||||
{
|
||||
setEffect((trigger.intData.length > 0) ? trigger.intData[0] : 0);
|
||||
setEffect((trigger?.stringData !== '') ? parseInt(trigger?.stringData!) : 0);
|
||||
}, [ trigger ]);
|
||||
|
||||
return (
|
||||
<WiredConditionBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } hasSpecialInput={ true } save={ save }>
|
||||
<Column gap={ 1 }>
|
||||
<Text bold>{ LocalizeText('wiredfurni.params.effectid') }</Text>
|
||||
<Text bold>{ LocalizeText('wiredfurni.tooltip.effectid') }</Text>
|
||||
<input type="number" className="form-control form-control-sm" value={ effect } onChange={ event => setEffect(parseInt(event.target.value)) } />
|
||||
</Column>
|
||||
</WiredConditionBaseView>
|
||||
|
Loading…
Reference in New Issue
Block a user