Eslint fixes

This commit is contained in:
MyNameIsBatman 2021-06-30 12:53:05 -03:00
parent 37d614e168
commit d14117d70a
3 changed files with 9 additions and 5 deletions

View File

@ -107,7 +107,7 @@ export const App: FC<{}> = props =>
});
return;
}
}, []);
}, [ getPreloadAssetUrls ]);
useMainEvent(Nitro.WEBGL_UNAVAILABLE, handler);
useMainEvent(Nitro.WEBGL_CONTEXT_LOST, handler);

View File

@ -31,23 +31,27 @@ export const WiredMessageHandler: FC<{}> = props =>
const onWiredOpenEvent = useCallback((event: WiredOpenEvent) =>
{
const parser = event.getParser();
console.log(parser);
}, []);
const onWiredRewardResultMessageEvent = useCallback((event: WiredRewardResultMessageEvent) =>
{
const parser = event.getParser();
console.log(parser);
}, []);
const onWiredSaveSuccessEvent = useCallback((event: WiredSaveSuccessEvent) =>
{
const parser = event.getParser();
setTrigger(null);
}, [ setTrigger ]);
const onWiredValidationErrorEvent = useCallback((event: WiredValidationErrorEvent) =>
{
const parser = event.getParser();
console.log(parser);
}, []);
CreateMessageHook(WiredFurniActionEvent, onWiredFurniActionEvent);

View File

@ -12,7 +12,7 @@ export const WiredConditionDateRangeView: FC<{}> = props =>
const dateToString = useCallback((date: Date) =>
{
return `${date.getFullYear()}/${('0' + (date.getMonth() + 1)).slice(-2)}/${('0' + date.getDate()).slice(-2)} ` + `${('0' + date.getHours()).slice(-2)}:${('0' + date.getMinutes()).slice(-2)}`;
return `${date.getFullYear()}/${('0' + (date.getMonth() + 1)).slice(-2)}/${('0' + date.getDate()).slice(-2)}${('0' + date.getHours()).slice(-2)}:${('0' + date.getMinutes()).slice(-2)}`;
}, []);
useEffect(() =>
@ -31,7 +31,7 @@ export const WiredConditionDateRangeView: FC<{}> = props =>
setStartDate(dateToString(startDate));
setEndDate(dateToString(endDate));
}
}, [ trigger ]);
}, [ trigger, dateToString ]);
const save = useCallback(() =>
{