mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-26 15:40:51 +01:00
Update WiredConditionActorIsWearingEffectView.tsx
This commit is contained in:
parent
2fa3662860
commit
d0f936f2d3
@ -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