From 2b521c9d29290bce4985427e963aaea69f3d31d9 Mon Sep 17 00:00:00 2001 From: SharglutDev Date: Mon, 21 Oct 2024 08:48:28 +0200 Subject: [PATCH 1/4] front: add style props to osrd menu Signed-off-by: SharglutDev --- front/src/common/OSRDMenu.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/front/src/common/OSRDMenu.tsx b/front/src/common/OSRDMenu.tsx index ca0ae9f2fb9..3d2d4556b88 100644 --- a/front/src/common/OSRDMenu.tsx +++ b/front/src/common/OSRDMenu.tsx @@ -9,10 +9,11 @@ export type OSRDMenuItem = { type OSRDMenuProps = { menuRef: React.RefObject; items: OSRDMenuItem[]; + style?: React.CSSProperties; }; -const OSRDMenu = ({ menuRef, items }: OSRDMenuProps) => ( -
+const OSRDMenu = ({ menuRef, items, style }: OSRDMenuProps) => ( +
{items.map(({ title, icon, onClick }) => (