diff --git a/front/public/locales/en/simulation.json b/front/public/locales/en/simulation.json index 35626ce68e2..ebb7a10f083 100644 --- a/front/public/locales/en/simulation.json +++ b/front/public/locales/en/simulation.json @@ -84,6 +84,9 @@ }, "trainList": "Train list", "waiting": "Loading...", + "waypointMenu": { + "hide": "Hide this OP" + }, "waypointsPanel": { "name": "name", "secondaryCode": "CH", diff --git a/front/public/locales/fr/simulation.json b/front/public/locales/fr/simulation.json index b23527b586b..873f57cde7f 100644 --- a/front/public/locales/fr/simulation.json +++ b/front/public/locales/fr/simulation.json @@ -84,6 +84,9 @@ }, "trainList": "Liste des trains", "waiting": "Chargement en cours…", + "waypointMenu": { + "hide": "Masquer ce PR" + }, "waypointsPanel": { "name": "nom", "secondaryCode": "CH", 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 }) => (