Openstatus www.openstatus.dev

Move user to monitor edit from status page. (#244)

* add an `s` to page to make it plural

* redirect to the monitor edit page

When a user clicks on the monitors in the status page views, redirect
them to the edit page of that monitor.

authored by

Kelvin Amoaba and committed by
GitHub
163662ad dc62ef9d

+11 -9
+11 -9
apps/web/src/app/app/(dashboard)/[workspaceSlug]/status-pages/page.tsx
··· 76 76 <dd className="flex flex-wrap justify-end gap-2"> 77 77 {page.monitorsToPages.map( 78 78 ({ monitor: { id, name, active } }) => ( 79 - <Badge key={id} variant={active ? "default" : "outline"}> 80 - {name} 81 - <span 82 - className={cn( 83 - "ml-1 inline-block h-1.5 w-1.5 rounded-full", 84 - active ? "bg-green-500" : "bg-red-500", 85 - )} 86 - /> 87 - </Badge> 79 + <Link key={id} href={`./monitors/edit?id=${id}`}> 80 + <Badge variant={active ? "default" : "outline"}> 81 + {name} 82 + <span 83 + className={cn( 84 + "ml-1 inline-block h-1.5 w-1.5 rounded-full", 85 + active ? "bg-green-500" : "bg-red-500", 86 + )} 87 + /> 88 + </Badge> 89 + </Link> 88 90 ), 89 91 )} 90 92 </dd>