--
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { Headquarters } from "../../types";
|
||||
|
||||
/** Pick any number of headquarters. `owners` shows who manages each one today. */
|
||||
/** Pick any number of headquarters. `owners` shows who else manages each one today (a headquarters may have several). */
|
||||
export function HeadquartersChecklist({ headquarters, selected, onChange, owners = {}, disabled = false }: {
|
||||
headquarters: Headquarters[];
|
||||
selected: ReadonlySet<string>;
|
||||
@@ -21,7 +21,7 @@ export function HeadquartersChecklist({ headquarters, selected, onChange, owners
|
||||
<input type="checkbox" checked={selected.has(h.id)} disabled={disabled} onChange={() => toggle(h.id)} />
|
||||
<span className="hq-check-text">
|
||||
<strong>{h.code}</strong> · {h.name}
|
||||
{owners[h.id] && <small>Managed by {owners[h.id]}</small>}
|
||||
{owners[h.id] && <small>Area Manager: {owners[h.id]}</small>}
|
||||
</span>
|
||||
</label>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user