Suppoter key

This commit is contained in:
Owen
2026-05-26 16:35:28 -07:00
parent f12451b8f9
commit 6ea4aa1920
3 changed files with 7 additions and 16 deletions

View File

@@ -3,7 +3,6 @@
import type { SidebarNavSection } from "@app/app/navigation"; import type { SidebarNavSection } from "@app/app/navigation";
import { OrgSelector } from "@app/components/OrgSelector"; import { OrgSelector } from "@app/components/OrgSelector";
import { SidebarNav } from "@app/components/SidebarNav"; import { SidebarNav } from "@app/components/SidebarNav";
import SupporterStatus from "@app/components/SupporterStatus";
import { import {
Tooltip, Tooltip,
TooltipContent, TooltipContent,
@@ -258,11 +257,6 @@ export function LayoutSidebar({
/> />
</div> </div>
)} )}
{build === "oss" && (
<div className="px-4">
<SupporterStatus isCollapsed={isSidebarCollapsed} />
</div>
)}
{build === "saas" && ( {build === "saas" && (
<div className="px-4"> <div className="px-4">
<SidebarSupportButton <SidebarSupportButton

View File

@@ -27,7 +27,6 @@ import SecurityKeyForm from "./SecurityKeyForm";
import Enable2FaDialog from "./Enable2FaDialog"; import Enable2FaDialog from "./Enable2FaDialog";
import ChangePasswordDialog from "./ChangePasswordDialog"; import ChangePasswordDialog from "./ChangePasswordDialog";
import ViewDevicesDialog from "./ViewDevicesDialog"; import ViewDevicesDialog from "./ViewDevicesDialog";
import SupporterStatus from "./SupporterStatus";
import { UserType } from "@server/types/UserTypes"; import { UserType } from "@server/types/UserTypes";
import LocaleSwitcher from "@app/components/LocaleSwitcher"; import LocaleSwitcher from "@app/components/LocaleSwitcher";
import { useTranslations } from "next-intl"; import { useTranslations } from "next-intl";

View File

@@ -1,14 +1,10 @@
"use client"; "use client";
import Image from "next/image"; // THIS IS DEPRECATED AND IS NO LONGER SHOWED TO THE USER WITH THE DISCONTINUATION
import { Separator } from "@app/components/ui/separator"; // OF THE SUPPORTER PROGRAM. IT MAY BE REMOVED IN A FUTURE UPDATE.
import { useSupporterStatusContext } from "@app/hooks/useSupporterStatusContext"; import { useSupporterStatusContext } from "@app/hooks/useSupporterStatusContext";
import { useState, useTransition } from "react"; import { useState, useTransition } from "react";
import {
Popover,
PopoverContent,
PopoverTrigger
} from "@app/components/ui/popover";
import { import {
Tooltip, Tooltip,
TooltipContent, TooltipContent,
@@ -44,7 +40,6 @@ import { useEnvContext } from "@app/hooks/useEnvContext";
import { AxiosResponse } from "axios"; import { AxiosResponse } from "axios";
import { ValidateSupporterKeyResponse } from "@server/routers/supporterKey"; import { ValidateSupporterKeyResponse } from "@server/routers/supporterKey";
import Link from "next/link"; import Link from "next/link";
import { useRouter } from "next/navigation";
import { import {
Card, Card,
CardContent, CardContent,
@@ -228,7 +223,10 @@ export default function SupporterStatus({
<div className="my-4 p-4 border border-blue-500/50 bg-blue-500/10 rounded-lg"> <div className="my-4 p-4 border border-blue-500/50 bg-blue-500/10 rounded-lg">
<p className="text-sm"> <p className="text-sm">
<strong>Business & Enterprise Users:</strong> For larger organizations or teams requiring advanced features, consider our self-serve enterprise license and Enterprise Edition.{" "} <strong>Business & Enterprise Users:</strong>{" "}
For larger organizations or teams requiring
advanced features, consider our self-serve
enterprise license and Enterprise Edition.{" "}
<Link <Link
href="https://pangolin.net/pricing#Self-Hosted" href="https://pangolin.net/pricing#Self-Hosted"
target="_blank" target="_blank"