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

View File

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

View File

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