fix: zen-mode exit button not working (#5682)
This commit is contained in:
parent
933c6a2237
commit
59ec1c6cee
@ -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>
|
||||
|
@ -96,7 +96,7 @@ const Footer = ({
|
||||
{actionManager.renderAction("toggleShortcuts")}
|
||||
</div>
|
||||
<ExitZenModeAction
|
||||
executeAction={actionManager.executeAction}
|
||||
actionManager={actionManager}
|
||||
showExitZenModeBtn={showExitZenModeBtn}
|
||||
/>
|
||||
</footer>
|
||||
|
Loading…
x
Reference in New Issue
Block a user