feat: implement first and last mile trucking pricing logic in booking and contract services

This commit is contained in:
Marshal
2026-06-28 23:54:51 +00:00
parent 947dcbed3d
commit 4be4cc9054
4 changed files with 149 additions and 14 deletions

View File

@@ -8,7 +8,6 @@ import {
Info,
PackageCheck,
ShieldCheck,
Sparkles,
TrainFront,
Truck,
} from "lucide-react";
@@ -136,7 +135,6 @@ function ServiceTypeSelector({
<div className="grid gap-3 sm:grid-cols-2">
{services.map((s) => {
const selected = s.id === value;
const hasBonus = (s.priorityBonusPoints ?? 0) > 0;
return (
<button
key={s.id}
@@ -201,14 +199,6 @@ function ServiceTypeSelector({
<Text fz={14.5} fw={750} c={INK} style={{ lineHeight: 1.25 }}>
{s.serviceName}
</Text>
{hasBonus ? (
<Group gap={4} mt={3} wrap="nowrap">
<Sparkles size={11} color="#B26C09" />
<Text fz={11} fw={700} c="#B26C09">
Priority service
</Text>
</Group>
) : null}
</Box>
</Group>