mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +01:00
Eslint fixes
This commit is contained in:
parent
37d614e168
commit
d14117d70a
@ -107,7 +107,7 @@ export const App: FC<{}> = props =>
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}, []);
|
}, [ getPreloadAssetUrls ]);
|
||||||
|
|
||||||
useMainEvent(Nitro.WEBGL_UNAVAILABLE, handler);
|
useMainEvent(Nitro.WEBGL_UNAVAILABLE, handler);
|
||||||
useMainEvent(Nitro.WEBGL_CONTEXT_LOST, handler);
|
useMainEvent(Nitro.WEBGL_CONTEXT_LOST, handler);
|
||||||
|
@ -31,23 +31,27 @@ export const WiredMessageHandler: FC<{}> = props =>
|
|||||||
const onWiredOpenEvent = useCallback((event: WiredOpenEvent) =>
|
const onWiredOpenEvent = useCallback((event: WiredOpenEvent) =>
|
||||||
{
|
{
|
||||||
const parser = event.getParser();
|
const parser = event.getParser();
|
||||||
|
|
||||||
|
console.log(parser);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const onWiredRewardResultMessageEvent = useCallback((event: WiredRewardResultMessageEvent) =>
|
const onWiredRewardResultMessageEvent = useCallback((event: WiredRewardResultMessageEvent) =>
|
||||||
{
|
{
|
||||||
const parser = event.getParser();
|
const parser = event.getParser();
|
||||||
|
|
||||||
|
console.log(parser);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const onWiredSaveSuccessEvent = useCallback((event: WiredSaveSuccessEvent) =>
|
const onWiredSaveSuccessEvent = useCallback((event: WiredSaveSuccessEvent) =>
|
||||||
{
|
{
|
||||||
const parser = event.getParser();
|
|
||||||
|
|
||||||
setTrigger(null);
|
setTrigger(null);
|
||||||
}, [ setTrigger ]);
|
}, [ setTrigger ]);
|
||||||
|
|
||||||
const onWiredValidationErrorEvent = useCallback((event: WiredValidationErrorEvent) =>
|
const onWiredValidationErrorEvent = useCallback((event: WiredValidationErrorEvent) =>
|
||||||
{
|
{
|
||||||
const parser = event.getParser();
|
const parser = event.getParser();
|
||||||
|
|
||||||
|
console.log(parser);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
CreateMessageHook(WiredFurniActionEvent, onWiredFurniActionEvent);
|
CreateMessageHook(WiredFurniActionEvent, onWiredFurniActionEvent);
|
||||||
|
@ -12,7 +12,7 @@ export const WiredConditionDateRangeView: FC<{}> = props =>
|
|||||||
|
|
||||||
const dateToString = useCallback((date: Date) =>
|
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(() =>
|
useEffect(() =>
|
||||||
@ -31,7 +31,7 @@ export const WiredConditionDateRangeView: FC<{}> = props =>
|
|||||||
setStartDate(dateToString(startDate));
|
setStartDate(dateToString(startDate));
|
||||||
setEndDate(dateToString(endDate));
|
setEndDate(dateToString(endDate));
|
||||||
}
|
}
|
||||||
}, [ trigger ]);
|
}, [ trigger, dateToString ]);
|
||||||
|
|
||||||
const save = useCallback(() =>
|
const save = useCallback(() =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user