useCallback here too

This commit is contained in:
Blake Blackshear 2021-07-06 07:34:39 -05:00
parent b1dfee2cf5
commit 3876b00088

View File

@ -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);