updates on the ui

This commit is contained in:
2026-06-26 11:25:55 +05:30
parent 5e2a23e7e2
commit 1695ad3d34
5 changed files with 145 additions and 152 deletions

View File

@@ -3474,19 +3474,21 @@ const Dispatch = ({
{!embedded && (
<button className={`sbt ${viewMode === 'all' ? 'active' : ''}`} onClick={() => { logger.info('View mode changed: All Active Routes'); setViewMode('all'); handleRiderFocus(null); setFocusedKitchen(null); setFocusedZone(null); }}><span className="sbt-icon"><MdPublic /></span>Active</button>
)}
<button
type="button"
className={`sbt sbt-rider-info ${viewMode === 'rider-info' ? 'active' : ''}`}
onClick={() => {
setViewMode('rider-info');
handleRiderFocus(null);
setFocusedKitchen(null);
setFocusedZone(null);
}}
title="Live GPS / battery / status snapshot for a rider"
>
<span className="sbt-icon"><MdInfoOutline /></span> Rider Info
</button>
{!embedded && (
<button
type="button"
className={`sbt sbt-rider-info ${viewMode === 'rider-info' ? 'active' : ''}`}
onClick={() => {
setViewMode('rider-info');
handleRiderFocus(null);
setFocusedKitchen(null);
setFocusedZone(null);
}}
title="Live GPS / battery / status snapshot for a rider"
>
<span className="sbt-icon"><MdInfoOutline /></span> Rider Info
</button>
)}
</div>
{shouldFetchLive && viewMode !== 'rider-info' && (