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:
parent
933c6a2237
commit
59ec1c6cee
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user