mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-23 19:11:14 +01:00
useCallback here too
This commit is contained in:
parent
b1dfee2cf5
commit
3876b00088
@ -42,9 +42,9 @@ export default function AppBar() {
|
||||
sendRestart();
|
||||
}, [setShowDialog]); // eslint-disable-line react-hooks/exhaustive-deps
|
||||
|
||||
const handleDismissRestartDialog = () => {
|
||||
const handleDismissRestartDialog = useCallback(() => {
|
||||
setShowDialog(false);
|
||||
};
|
||||
}, [setShowDialog]);
|
||||
|
||||
const handleRestart = useCallback(() => {
|
||||
setShowMoreMenu(false);
|
||||
|
Loading…
Reference in New Issue
Block a user