handle delete

This commit is contained in:
Alex Holliday committed 2026-02-03 21:14:16 +00:00
1 parent 40e5550e0f
commit a80df60fc1
9 files changed
+47 -25

No files matched your search

@@ -22,7 +22,7 @@ export const StatusPagesTable = ({ data }: StatusPagesTableProps) => {
const handleUrlClick = (e: React.MouseEvent, row: StatusPage) => {
if (row.isPublished) {
e.stopPropagation();
const url = `/status/uptime/public/${row.url}`;
const url = `/status/public/${row.url}`;
window.open(url, "_blank", "noopener,noreferrer");
}
};
@@ -91,7 +91,7 @@ export const StatusPagesTable = ({ data }: StatusPagesTableProps) => {
};
const handleRowClick = (statusPage: StatusPage) => {
navigate(`/status/uptime/${statusPage.url}`);
navigate(`/status/${statusPage.url}`);
};
return (
@@ -27,10 +27,10 @@ const StatusPages = () => {
error={!!error}
items={statusPages ?? []}
actionButtonText={t("pages.statusPages.fallback.actionButton")}
actionLink="/status/uptime/create"
actionLink="/status/create"
>
<HeaderCreate
path="/status/uptime/create"
path="/status/create"
isAdmin={isAdmin}
/>
<StatusPagesTable data={statusPages ?? []} />