mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-30 00:50:50 +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(() =>
|
useEffect(() =>
|
||||||
{
|
{
|
||||||
setEffect((trigger.intData.length > 0) ? trigger.intData[0] : 0);
|
setEffect((trigger?.stringData !== '') ? parseInt(trigger?.stringData!) : 0);
|
||||||
}, [ trigger ]);
|
}, [ trigger ]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<WiredConditionBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } hasSpecialInput={ true } save={ save }>
|
<WiredConditionBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } hasSpecialInput={ true } save={ save }>
|
||||||
<Column gap={ 1 }>
|
<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)) } />
|
<input type="number" className="form-control form-control-sm" value={ effect } onChange={ event => setEffect(parseInt(event.target.value)) } />
|
||||||
</Column>
|
</Column>
|
||||||
</WiredConditionBaseView>
|
</WiredConditionBaseView>
|
||||||
|
Loading…
Reference in New Issue
Block a user