Virtual whiteboard for sketching hand-drawn like diagrams
fix: zen-mode exit button not working (#5682)
David Luzar59ec1c6cee2e
diff --git a/src/components/Actions.tsx b/src/components/Actions.tsxindex 8cd1d2abd1..1ba40ba08f 100644--- a/src/components/Actions.tsx+++ b/src/components/Actions.tsx@@ -286,17 +286,17 @@ export const UndoRedoActions = ({);export const ExitZenModeAction = ({- executeAction,+ actionManager,showExitZenModeBtn,}: {- executeAction: ActionManager["executeAction"];+ actionManager: ActionManager;showExitZenModeBtn: boolean;}) => (<buttonclassName={clsx("disable-zen-mode", {"disable-zen-mode--visible": showExitZenModeBtn,})}- onClick={() => executeAction(actionToggleZenMode)}+ onClick={() => actionManager.executeAction(actionToggleZenMode)}>{t("buttons.exitZenMode")}</button>diff --git a/src/components/Footer.tsx b/src/components/Footer.tsxindex 420aeb6a88..0fbcd73d9b 100644--- a/src/components/Footer.tsx+++ b/src/components/Footer.tsx@@ -96,7 +96,7 @@ const Footer = ({{actionManager.renderAction("toggleShortcuts")}</div><ExitZenModeAction- executeAction={actionManager.executeAction}+ actionManager={actionManager}showExitZenModeBtn={showExitZenModeBtn}/></footer>