fix entitlements on login
This commit is contained in:
1 parent
53355cad04
commit
30d7b3d258
17 files changed
+100
-46
No files matched your search
@@ -14,7 +14,8 @@ import { useForm, Controller } from "react-hook-form";
|
||||
import { zodResolver } from "@hookform/resolvers/zod";
|
||||
import { useGet, usePost } from "@/hooks/UseApi";
|
||||
import type { ApiResponse } from "@/hooks/UseApi";
|
||||
const host = import.meta.env.VITE_APP_HOST;
|
||||
import { config } from "@/config/index";
|
||||
const HOST = config.HOST;
|
||||
|
||||
type FormValues = z.infer<typeof inviteSchema>;
|
||||
|
||||
@@ -202,7 +203,7 @@ const Invite = () => {
|
||||
{token && (
|
||||
<Stack>
|
||||
<Typography variant="h2">Invite link:</Typography>
|
||||
<Typography>{`${host}/register/${token}`}</Typography>
|
||||
<Typography>{`${HOST}/register/${token}`}</Typography>
|
||||
</Stack>
|
||||
)}
|
||||
<Box flex={1}>
|
||||
|
||||
@@ -21,8 +21,8 @@ import {
|
||||
getOsAndPlatform,
|
||||
} from "@/pages/infrastructure/InfraUtils";
|
||||
import { InfraDetailsGauges } from "./InfraDetailsGauges";
|
||||
|
||||
const GLOBAL_REFRESH = import.meta.env.VITE_APP_GLOBAL_REFRESH;
|
||||
import { config } from "@/config/index";
|
||||
const GLOBAL_REFRESH = config.GLOBAL_REFRESH;
|
||||
|
||||
const InfraDetailsPage = () => {
|
||||
const theme = useTheme();
|
||||
|
||||
@@ -20,8 +20,9 @@ import { useState } from "react";
|
||||
import { useDelete } from "@/hooks/UseApi";
|
||||
import { InitializingStatusBox } from "@/components/design-elements/StatusBox";
|
||||
import { useAppSelector } from "@/hooks/AppHooks";
|
||||
import { config } from "@/config/index";
|
||||
|
||||
const GLOBAL_REFRESH = import.meta.env.VITE_APP_GLOBAL_REFRESH;
|
||||
const GLOBAL_REFRESH = config.GLOBAL_REFRESH;
|
||||
|
||||
const PageSpeedMonitorsPage = () => {
|
||||
const theme = useTheme();
|
||||
|
||||
@@ -14,8 +14,9 @@ import type { IMonitor, IMonitorWithMonitorStats } from "@/types/monitor";
|
||||
import { getStatusPalette } from "@/utils/MonitorUtils";
|
||||
import prettyMilliseconds from "pretty-ms";
|
||||
import useMediaQuery from "@mui/material/useMediaQuery";
|
||||
import { config } from "@/config/index";
|
||||
|
||||
const GLOBAL_REFRESH = import.meta.env.VITE_APP_GLOBAL_REFRESH;
|
||||
const GLOBAL_REFRESH = config.GLOBAL_REFRESH;
|
||||
const PageSpeedDetailsPage = () => {
|
||||
const theme = useTheme();
|
||||
const { id } = useParams();
|
||||
|
||||
@@ -20,8 +20,9 @@ import { useState } from "react";
|
||||
import { useDelete } from "@/hooks/UseApi";
|
||||
import { InitializingStatusBox } from "@/components/design-elements/StatusBox";
|
||||
import { useAppSelector } from "@/hooks/AppHooks";
|
||||
import { config } from "@/config/index";
|
||||
|
||||
const GLOBAL_REFRESH = import.meta.env.VITE_APP_GLOBAL_REFRESH;
|
||||
const GLOBAL_REFRESH = config.GLOBAL_REFRESH;
|
||||
|
||||
const PageSpeedMonitorsPage = () => {
|
||||
const theme = useTheme();
|
||||
|
||||
@@ -10,8 +10,9 @@ import type { ApiResponse } from "@/hooks/UseApi";
|
||||
import { useParams } from "react-router";
|
||||
import type { IStatusPageWithMonitors } from "@/types/status-page";
|
||||
import { NameHeader } from "@/components/status-pages/NameHeader";
|
||||
import { config } from "@/config/index";
|
||||
|
||||
const GLOBAL_REFRESH = import.meta.env.VITE_APP_GLOBAL_REFRESH;
|
||||
const GLOBAL_REFRESH = config.GLOBAL_REFRESH;
|
||||
const StatusPages = () => {
|
||||
const theme = useTheme();
|
||||
const { id } = useParams();
|
||||
|
||||
@@ -10,7 +10,9 @@ import type { ApiResponse } from "@/hooks/UseApi";
|
||||
import { useParams } from "react-router";
|
||||
import type { IStatusPageWithMonitors } from "@/types/status-page";
|
||||
import { NameHeader } from "@/components/status-pages/NameHeader";
|
||||
const GLOBAL_REFRESH = import.meta.env.VITE_APP_GLOBAL_REFRESH;
|
||||
import { config } from "@/config/index";
|
||||
|
||||
const GLOBAL_REFRESH = config.GLOBAL_REFRESH;
|
||||
const StatusPages = () => {
|
||||
const theme = useTheme();
|
||||
const { url } = useParams();
|
||||
|
||||
@@ -17,7 +17,9 @@ import { useGet, usePatch, type ApiResponse } from "@/hooks/UseApi";
|
||||
import { useState } from "react";
|
||||
import { getStatusPalette } from "@/utils/MonitorUtils";
|
||||
import prettyMilliseconds from "pretty-ms";
|
||||
const GLOBAL_REFRESH = import.meta.env.VITE_APP_GLOBAL_REFRESH;
|
||||
import { config } from "@/config/index";
|
||||
|
||||
const GLOBAL_REFRESH = config.GLOBAL_REFRESH;
|
||||
|
||||
const UptimeDetailsPage = () => {
|
||||
const { id } = useParams();
|
||||
|
||||
@@ -28,8 +28,9 @@ import useMediaQuery from "@mui/material/useMediaQuery";
|
||||
import { useState } from "react";
|
||||
import { useDelete } from "@/hooks/UseApi";
|
||||
import { useAppSelector } from "@/hooks/AppHooks";
|
||||
import { config } from "@/config/index";
|
||||
|
||||
const GLOBAL_REFRESH = import.meta.env.VITE_APP_GLOBAL_REFRESH;
|
||||
const GLOBAL_REFRESH = config.GLOBAL_REFRESH;
|
||||
|
||||
const UptimeMonitors = () => {
|
||||
const theme = useTheme();
|
||||
|
||||
Reference in new issue
Block a user