This commit is contained in:
Alex Holliday committed 2026-02-02 22:15:57 +00:00
1 parent 85190992c7
commit 1fefb038f0
9 files changed
+13 -513

No files matched your search

@@ -3,6 +3,8 @@ import { StatusPagesTable } from "./Components/StatusPagesTable";
import { useGet } from "@/Hooks/UseApi";
import type { StatusPage } from "@/Types/StatusPage";
import { useTranslation } from "react-i18next";
import { HeaderCreate } from "@/Components/v2/common";
import { useIsAdmin } from "@/Hooks/useIsAdmin";
const StatusPages = () => {
const { t } = useTranslation();
@@ -13,6 +15,8 @@ const StatusPages = () => {
error,
} = useGet<StatusPage[]>("/status-page/team");
const isAdmin = useIsAdmin();
return (
<BasePageWithStates
page={t("pages.statusPages.title")}
@@ -25,6 +29,10 @@ const StatusPages = () => {
actionButtonText={t("pages.statusPages.fallback.actionButton")}
actionLink="/status/uptime/create"
>
<HeaderCreate
path="/status/uptime/create"
isAdmin={isAdmin}
/>
<StatusPagesTable data={statusPages ?? []} />
</BasePageWithStates>
);