fix entitlements on login

This commit is contained in:
Alex Holliday committed 2025-12-02 21:46:01 +00:00
1 parent 53355cad04
commit 30d7b3d258
17 files changed
+100 -46

No files matched your search

@@ -9,7 +9,8 @@ import { useAppSelector } from "@/hooks/AppHooks";
import { useMemo, useState } from "react";
import { useTheme } from "@mui/material/styles";
import { Tooltip } from "@/components/design-elements";
const DEPLOYMENT_MODE = import.meta.env.VITE_APP_DEPLOYMENT_MODE;
import { config } from "@/config/index";
const DEPLOYMENT_MODE = config.DEPLOYMENT_MODE;
const IS_SAAS = DEPLOYMENT_MODE === "saas";
export const SettingsSwitch = () => {
@@ -1,32 +1,34 @@
import Typography from "@mui/material/Typography";
import Stack from "@mui/material/Stack";
import { ExternalLink } from "lucide-react";
import Link from "@mui/material/Link";
import { config } from "@/config/index";
import type { IStatusPageWithMonitors } from "@/types/status-page";
import { useTheme } from "@mui/material/styles";
const HOST = import.meta.env.VITE_APP_HOST;
const HOST = config.HOST;
export const NameHeader = ({
statusPage,
}: {
statusPage: IStatusPageWithMonitors;
}) => {
const theme = useTheme();
return (
<Stack direction={"row"} alignItems={"flex-end"} spacing={theme.spacing(4)}>
<Stack direction={"row"} alignItems={"flex-end"} spacing={4}>
<Typography variant="h1">{statusPage?.name}</Typography>
{statusPage?.isPublished && (
<Stack
component={"a"}
href={`${HOST}/status-pages/public/${statusPage?.url}`}
<Link
href={`${HOST ?? ""}/status-pages/public/${statusPage?.url}`}
target="_blank"
rel="noopener noreferrer"
direction={"row"}
sx={{ textDecoration: "none", color: "inherit" }}
underline="none"
color="inherit"
sx={{ display: "inline-flex" }}
>
<Typography>Public link</Typography>
<ExternalLink size={16} strokeWidth={1.5} />
</Stack>
<Stack direction="row" alignItems="center" spacing={1}>
<Typography>Public link</Typography>
<ExternalLink size={16} strokeWidth={1.5} />
</Stack>
</Link>
)}
</Stack>
);