From 9fa6ac31031cab05259140a278c831730d7ce63f Mon Sep 17 00:00:00 2001 From: Anna Date: Sun, 3 Nov 2024 14:40:18 +0100 Subject: [PATCH 1/2] feat : change diningSvg url and close button --- .../common/src/lib/commandsR/otherTables.tsx | 19 ++++++++++++++++--- .../src/lib/dining/diningRoomTables.tsx | 4 ++-- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/libs/ui/common/src/lib/commandsR/otherTables.tsx b/libs/ui/common/src/lib/commandsR/otherTables.tsx index 6cd27b5..28630a8 100644 --- a/libs/ui/common/src/lib/commandsR/otherTables.tsx +++ b/libs/ui/common/src/lib/commandsR/otherTables.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { Grid, Box, Typography, Divider } from '@mui/material'; import { Item } from './Item'; +import CloseButton from '../utils/closeButton'; interface OtherTableProps { table: { @@ -15,11 +16,23 @@ interface OtherTableProps { } const OtherTable: React.FC = ({ table, catalog, handleSelectItem }) => { + const handleCloseButton = () => { + console.log('Close button clicked'); + }; return ( <> - - Table Nb {table.number} - + + + Table Nb {table.number} + + + { console.log('Back button clicked'); - navigate(`/mealSelectionForPayment/${groupId}/${tableNumber}`); + navigate(`/mealSelectionForPayment/${tableNumber}`); }; const handleContinueClick = () => { console.log('Continue button clicked'); - navigate(`/mealSelectionForPayment/${groupId}/${tableNumber}`); + navigate(`/mealSelectionForPayment/${tableNumber}`); }; return ( From 0b168dd18b4675849d9a08a9497cf2c7b6b7c0a8 Mon Sep 17 00:00:00 2001 From: Anna Date: Sun, 3 Nov 2024 14:42:37 +0100 Subject: [PATCH 2/2] feat : url paymentasignee --- libs/ui/common/src/lib/billing/payementAsignee.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ui/common/src/lib/billing/payementAsignee.tsx b/libs/ui/common/src/lib/billing/payementAsignee.tsx index ea8e1e3..8fe5da8 100644 --- a/libs/ui/common/src/lib/billing/payementAsignee.tsx +++ b/libs/ui/common/src/lib/billing/payementAsignee.tsx @@ -136,7 +136,7 @@ export function PayementAsignee() { > { - navigate(`/mealSelectionForPayment/${groupId}/${tableId}`); + navigate(`/mealSelectionForPayment/${tableId}`); }} >