updates on the activeSection and dispatch

This commit is contained in:
2026-06-18 15:05:29 +05:30
parent 892f8fbc5d
commit 3e0772ffb8
2 changed files with 93 additions and 18 deletions

View File

@@ -7,6 +7,7 @@ import {
MdMyLocation,
MdInventory2
} from 'react-icons/md';
import dayjs from 'dayjs';
import { getStatusStyle, getActiveOrder } from './dispatchShared';
const ActiveSection = ({
@@ -83,13 +84,20 @@ const ActiveSection = ({
<span className="adcard-tx">{riderName}</span>
</div>
</div>
<span
className="adcard-status"
style={{ background: `${statusStyle.bg}1a`, color: statusStyle.bg }}
title={statusStyle.label}
>
{statusStyle.label}
</span>
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'flex-end', gap: '4px' }}>
<span
className="adcard-status"
style={{ background: `${statusStyle.bg}1a`, color: statusStyle.bg }}
title={statusStyle.label}
>
{statusStyle.label}
</span>
{o.deliverytime && (
<span className="adcard-time" style={{ fontSize: '11px', color: '#64748b' }}>
{dayjs(o.deliverytime).isValid() ? dayjs(o.deliverytime).format('HH:mm:ss') : String(o.deliverytime)}
</span>
)}
</div>
</div>
{dropArea && (