removed the all location button inthe dispatch page and the rdierlogs page only show the active riders
This commit is contained in:
@@ -2788,43 +2788,6 @@ const Dispatch = ({
|
||||
<div className="logo">
|
||||
<div className="logo-badge">D</div>
|
||||
<div className="logo-name">Dispatch</div>
|
||||
{appLocations && appLocations.length > 0 && (
|
||||
<div className="logo-city-wrap" ref={locationMenuRef}>
|
||||
<button
|
||||
type="button"
|
||||
className={`logo-city ${locationMenuOpen ? 'open' : ''}`}
|
||||
onClick={() => setLocationMenuOpen((v) => !v)}
|
||||
aria-haspopup="listbox"
|
||||
aria-expanded={locationMenuOpen}
|
||||
title="Switch hub"
|
||||
>
|
||||
<MdPlace />
|
||||
<span className="logo-city-text">{locationName || 'All locations'}</span>
|
||||
<MdExpandMore className="logo-city-caret" />
|
||||
</button>
|
||||
{locationMenuOpen && (
|
||||
<div className="logo-city-menu" role="listbox">
|
||||
{appLocations.map((loc) => {
|
||||
const isActive = String(loc.applocationid) === String(selectedAppLocationId);
|
||||
return (
|
||||
<button
|
||||
key={loc.applocationid}
|
||||
type="button"
|
||||
role="option"
|
||||
aria-selected={isActive}
|
||||
className={`logo-city-option ${isActive ? 'active' : ''}`}
|
||||
onClick={() => handleLocationPick(loc.applocationid)}
|
||||
>
|
||||
<MdPlace className="logo-city-option-icon" />
|
||||
<span>{loc.locationname}</span>
|
||||
{isActive && <span className="logo-city-option-check">✓</span>}
|
||||
</button>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Header right-cluster: total-orders pill, date picker. Sits to the
|
||||
|
||||
Reference in New Issue
Block a user