From 955d9e6ec213e59f964a4045c1dc43a18b0368f3 Mon Sep 17 00:00:00 2001 From: ElMoribond Date: Wed, 23 Jun 2021 14:38:38 +0200 Subject: [PATCH] Add ability to restart --- web/src/AppBar.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/AppBar.jsx b/web/src/AppBar.jsx index 12da10cf6..2083db421 100644 --- a/web/src/AppBar.jsx +++ b/web/src/AppBar.jsx @@ -49,7 +49,7 @@ export default function AppBar() { const handleRestart = useCallback(() => { setShowMoreMenu(false); setShowDialog(true); - }); + }, [setShowDialog]); return ( @@ -70,8 +70,8 @@ export default function AppBar() { title="Restart Frigate" text="Are you sure ?" actions={[ - { text: "Yes", color: "red", onClick: handleClickRestartDialog }, - { text: "Cancel", onClick: handleDismissRestartDialog }, + { text: 'Yes' color: 'red', onClick: handleClickRestartDialog }, + { text: 'Cancel', onClick: handleDismissRestartDialog }, ]} /> ) : null},