mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-09-14 17:52:10 +02:00
useCallback here too
This commit is contained in:
parent
b1dfee2cf5
commit
3876b00088
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user