From 7fed72ea7a285e19f0800036fe8ec6d33535cb55 Mon Sep 17 00:00:00 2001 From: natib21 Date: Wed, 24 Jun 2026 08:16:24 +0000 Subject: [PATCH 1/2] fix --- .../src/pages/operations/FirstMilePage.tsx | 47 ++++++++++++++----- 1 file changed, 35 insertions(+), 12 deletions(-) diff --git a/apps/edr-freight-web/backoffice/src/pages/operations/FirstMilePage.tsx b/apps/edr-freight-web/backoffice/src/pages/operations/FirstMilePage.tsx index 7842adfeb..33f7300f4 100644 --- a/apps/edr-freight-web/backoffice/src/pages/operations/FirstMilePage.tsx +++ b/apps/edr-freight-web/backoffice/src/pages/operations/FirstMilePage.tsx @@ -1,6 +1,7 @@ import { type ReactNode, useMemo, useState } from "react"; import { ArrowRight, + ChevronRight, Eye, MoreHorizontal, Printer, @@ -26,6 +27,7 @@ import { Stack, Text, TextInput, + UnstyledButton, } from "@mantine/core"; import { ruleEngineTable } from "@/components/ruleEngine/ruleEngineStyles"; @@ -865,33 +867,54 @@ const FirstMilePage = () => { No paid bookings found. ) : ( filteredPaidBookings.map((b) => ( - { setSelectedBooking(b); setAcceptStep(2); }} + style={{ + borderRadius: "var(--mantine-radius-md)", + border: "1px solid var(--mantine-color-gray-3)", + padding: "10px 12px", + backgroundColor: "var(--mantine-color-white)", + transition: "background-color 120ms ease, border-color 120ms ease", + }} + onMouseEnter={(e) => { + (e.currentTarget as HTMLButtonElement).style.backgroundColor = + "var(--mantine-color-blue-0)"; + (e.currentTarget as HTMLButtonElement).style.borderColor = + "var(--mantine-color-blue-4)"; + }} + onMouseLeave={(e) => { + (e.currentTarget as HTMLButtonElement).style.backgroundColor = + "var(--mantine-color-white)"; + (e.currentTarget as HTMLButtonElement).style.borderColor = + "var(--mantine-color-gray-3)"; + }} > - - - {b.reference} - {b.company?.name ?? b.company?.companyName ?? "—"} + + + {b.reference} + + {b.company?.name ?? b.company?.companyName ?? "—"} + - + {b.originYard?.name ?? "—"} → {b.destinationYard?.name ?? "—"} - {formatPrice(b.totalAmount)} + + {formatPrice(b.totalAmount)} + {b.scheduledDate ? b.scheduledDate.slice(0, 10) : "—"} + - + )) )} From a1b72e591e755a492b97e5d288e5495cdddbd088 Mon Sep 17 00:00:00 2001 From: yaschalew Date: Wed, 24 Jun 2026 11:21:13 +0300 Subject: [PATCH 2/2] fix issue --- apps/edr-freight-web/backoffice/src/constants/apiConfig.ts | 4 ++-- apps/edr-freight-web/portal/src/constants/apiConfig.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/edr-freight-web/backoffice/src/constants/apiConfig.ts b/apps/edr-freight-web/backoffice/src/constants/apiConfig.ts index a7c8670cf..030b051a1 100644 --- a/apps/edr-freight-web/backoffice/src/constants/apiConfig.ts +++ b/apps/edr-freight-web/backoffice/src/constants/apiConfig.ts @@ -1,3 +1,3 @@ -// export const API_BASE_URL = 'https://edrfreightapi.triaplc.com'; +export const API_BASE_URL = 'https://edrfreightapi.triaplc.com'; -export const API_BASE_URL = 'http://localhost:3001'; +// export const API_BASE_URL = 'http://localhost:3001'; diff --git a/apps/edr-freight-web/portal/src/constants/apiConfig.ts b/apps/edr-freight-web/portal/src/constants/apiConfig.ts index fc9f57a58..dce8aad63 100644 --- a/apps/edr-freight-web/portal/src/constants/apiConfig.ts +++ b/apps/edr-freight-web/portal/src/constants/apiConfig.ts @@ -1,3 +1,3 @@ -// export const API_BASE_URL = 'https://edrfreightapi.triaplc.com'; -export const API_BASE_URL = 'http://localhost:3001'; +export const API_BASE_URL = 'https://edrfreightapi.triaplc.com'; +// export const API_BASE_URL = 'http://localhost:3001';