feat(dashboard): Top providers row drillable to /providers?provider=NPI
This commit is contained in:
+16
-1
@@ -289,7 +289,22 @@ export function Dashboard() {
|
||||
<CardContent className="pt-0">
|
||||
<ul className="space-y-4">
|
||||
{topProviders.map((p, i) => (
|
||||
<li key={p.npi} className="flex items-center gap-3">
|
||||
<li
|
||||
key={p.npi}
|
||||
onClick={() =>
|
||||
navigate(`/providers?provider=${encodeURIComponent(p.npi)}`)
|
||||
}
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === "Enter")
|
||||
navigate(
|
||||
`/providers?provider=${encodeURIComponent(p.npi)}`
|
||||
);
|
||||
}}
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
aria-label={`View provider ${p.name}`}
|
||||
className="drillable flex items-center gap-3"
|
||||
>
|
||||
<div className="h-7 w-7 rounded-md bg-muted/60 ring-1 ring-inset ring-border/40 flex items-center justify-center mono text-[10.5px] text-muted-foreground">
|
||||
{String(i + 1).padStart(2, "0")}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user