1
0
mirror of https://github.com/excalidraw/excalidraw.git synced 2025-02-18 13:29:36 +01:00

fix: zen-mode exit button not working (#5682)

This commit is contained in:
David Luzar 2022-09-09 13:53:38 +02:00 committed by GitHub
parent 933c6a2237
commit 59ec1c6cee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

@ -286,17 +286,17 @@ export const UndoRedoActions = ({
); );
export const ExitZenModeAction = ({ export const ExitZenModeAction = ({
executeAction, actionManager,
showExitZenModeBtn, showExitZenModeBtn,
}: { }: {
executeAction: ActionManager["executeAction"]; actionManager: ActionManager;
showExitZenModeBtn: boolean; showExitZenModeBtn: boolean;
}) => ( }) => (
<button <button
className={clsx("disable-zen-mode", { className={clsx("disable-zen-mode", {
"disable-zen-mode--visible": showExitZenModeBtn, "disable-zen-mode--visible": showExitZenModeBtn,
})} })}
onClick={() => executeAction(actionToggleZenMode)} onClick={() => actionManager.executeAction(actionToggleZenMode)}
> >
{t("buttons.exitZenMode")} {t("buttons.exitZenMode")}
</button> </button>

@ -96,7 +96,7 @@ const Footer = ({
{actionManager.renderAction("toggleShortcuts")} {actionManager.renderAction("toggleShortcuts")}
</div> </div>
<ExitZenModeAction <ExitZenModeAction
executeAction={actionManager.executeAction} actionManager={actionManager}
showExitZenModeBtn={showExitZenModeBtn} showExitZenModeBtn={showExitZenModeBtn}
/> />
</footer> </footer>