forked from Github/frigate
useCallback here too
This commit is contained in:
@@ -42,9 +42,9 @@ export default function AppBar() {
|
|||||||
sendRestart();
|
sendRestart();
|
||||||
}, [setShowDialog]); // eslint-disable-line react-hooks/exhaustive-deps
|
}, [setShowDialog]); // eslint-disable-line react-hooks/exhaustive-deps
|
||||||
|
|
||||||
const handleDismissRestartDialog = () => {
|
const handleDismissRestartDialog = useCallback(() => {
|
||||||
setShowDialog(false);
|
setShowDialog(false);
|
||||||
};
|
}, [setShowDialog]);
|
||||||
|
|
||||||
const handleRestart = useCallback(() => {
|
const handleRestart = useCallback(() => {
|
||||||
setShowMoreMenu(false);
|
setShowMoreMenu(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user