From a077933b6d3c8bbbba89e1c2e9df7f3b333e35c8 Mon Sep 17 00:00:00 2001 From: Nils Petter Fremming Date: Wed, 26 Jun 2024 10:54:59 +0200 Subject: [PATCH] Fixed shortcut --- react-components/src/components/Architecture/CommandButtons.tsx | 2 +- .../src/components/Architecture/LabelWithShortcut.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/react-components/src/components/Architecture/CommandButtons.tsx b/react-components/src/components/Architecture/CommandButtons.tsx index 8c887272dc3..abc2cc5f3bb 100644 --- a/react-components/src/components/Architecture/CommandButtons.tsx +++ b/react-components/src/components/Architecture/CommandButtons.tsx @@ -57,5 +57,5 @@ function CommandButtonWrapper({ const direction = !isHorizontal ? 'horizontal' : 'vertical'; return ; } - return CreateButton(command); + return CreateButton(command, isHorizontal); } diff --git a/react-components/src/components/Architecture/LabelWithShortcut.tsx b/react-components/src/components/Architecture/LabelWithShortcut.tsx index 22049b0df04..0a7e8c5dde7 100644 --- a/react-components/src/components/Architecture/LabelWithShortcut.tsx +++ b/react-components/src/components/Architecture/LabelWithShortcut.tsx @@ -16,7 +16,7 @@ export const LabelWithShortcut: React.FC = ({ label, sho return ( - {shortcut !== undefined && } + {shortcut !== undefined && } ); };