From 7626636ee5a949ba975e6a22d5b298715ee7897d Mon Sep 17 00:00:00 2001 From: Dimitris Zarras <138439389+dzarras@users.noreply.github.com> Date: Tue, 24 Sep 2024 15:08:38 +0300 Subject: [PATCH] added ui corrections (#20) Co-authored-by: Rania Tsolka Co-authored-by: SmirlakisParis --- .../components/molecules/CarInformation.tsx | 22 ++++++---- src/client/components/molecules/Modal.tsx | 18 +++++--- .../molecules/ReservationConfirmation.tsx | 41 +++++++++---------- .../components/organisms/BookingForm.tsx | 35 ++++++++-------- src/pages/_app.tsx | 31 ++++++++------ src/pages/index.tsx | 12 ++++-- 6 files changed, 91 insertions(+), 68 deletions(-) diff --git a/src/client/components/molecules/CarInformation.tsx b/src/client/components/molecules/CarInformation.tsx index e1802e5..23f6447 100644 --- a/src/client/components/molecules/CarInformation.tsx +++ b/src/client/components/molecules/CarInformation.tsx @@ -12,6 +12,11 @@ export default function CarInformation() { link.click(); }; + const openInNewTab = (url: string) => { + const newWindow = window.open(url, "_blank", "noopener,noreferrer"); + if (newWindow) newWindow.opener = null; + }; + return ( - + car + To continue booking your car rental, you must{" "} sign your contract {" "} @@ -54,9 +60,11 @@ export default function CarInformation() { }} > ) : (