diff --git a/src/app/admin/users/AdminUsersTable.tsx b/src/app/admin/users/AdminUsersTable.tsx
index 12a6145..68ad279 100644
--- a/src/app/admin/users/AdminUsersTable.tsx
+++ b/src/app/admin/users/AdminUsersTable.tsx
@@ -173,7 +173,7 @@ export default function UsersTable({ users }: Props) {
Are you sure you want to permanently delete{" "}
-
+
{selected?.email ||
selected?.name ||
selected?.username}
diff --git a/src/app/components/LicenseViolation.tsx b/src/app/components/LicenseViolation.tsx
index 1771475..75d544d 100644
--- a/src/app/components/LicenseViolation.tsx
+++ b/src/app/components/LicenseViolation.tsx
@@ -5,21 +5,33 @@
"use client";
+import { Button } from "@app/components/ui/button";
import { useLicenseStatusContext } from "@app/hooks/useLicenseStatusContext";
+import { useState } from "react";
export default function LicenseViolation() {
const { licenseStatus } = useLicenseStatusContext();
+ const [isDismissed, setIsDismissed] = useState(false);
- if (!licenseStatus) return null;
+ if (!licenseStatus || isDismissed) return null;
// Show invalid license banner
if (licenseStatus.isHostLicensed && !licenseStatus.isLicenseValid) {
return (
-
- Invalid or expired license keys detected. Follow license
- terms to continue using all features.
-
+
+
+ Invalid or expired license keys detected. Follow license
+ terms to continue using all features.
+
+
+
);
}
@@ -32,12 +44,21 @@ export default function LicenseViolation() {
) {
return (
-
- License Violation: This server is using{" "}
- {licenseStatus.usedSites} sites which exceeds its licensed
- limit of {licenseStatus.maxSites} sites. Follow license
- terms to continue using all features.
-
+
+
+ License Violation: This server is using{" "}
+ {licenseStatus.usedSites} sites which exceeds its
+ licensed limit of {licenseStatus.maxSites} sites. Follow
+ license terms to continue using all features.
+
+
+
);
}
diff --git a/src/components/Breadcrumbs.tsx b/src/components/Breadcrumbs.tsx
index 9740759..25366ff 100644
--- a/src/components/Breadcrumbs.tsx
+++ b/src/components/Breadcrumbs.tsx
@@ -16,33 +16,7 @@ export function Breadcrumbs() {
const breadcrumbs: BreadcrumbItem[] = segments.map((segment, index) => {
const href = `/${segments.slice(0, index + 1).join("/")}`;
- let label = segment;
-
- // // Format labels
- // if (segment === "settings") {
- // label = "Settings";
- // } else if (segment === "sites") {
- // label = "Sites";
- // } else if (segment === "resources") {
- // label = "Resources";
- // } else if (segment === "access") {
- // label = "Access Control";
- // } else if (segment === "general") {
- // label = "General";
- // } else if (segment === "share-links") {
- // label = "Shareable Links";
- // } else if (segment === "users") {
- // label = "Users";
- // } else if (segment === "roles") {
- // label = "Roles";
- // } else if (segment === "invitations") {
- // label = "Invitations";
- // } else if (segment === "proxy") {
- // label = "proxy";
- // } else if (segment === "authentication") {
- // label = "Authentication";
- // }
-
+ let label = decodeURIComponent(segment);
return { label, href };
});
diff --git a/src/components/ConfirmDeleteDialog.tsx b/src/components/ConfirmDeleteDialog.tsx
index 5ed13d5..a928ed6 100644
--- a/src/components/ConfirmDeleteDialog.tsx
+++ b/src/components/ConfirmDeleteDialog.tsx
@@ -105,7 +105,7 @@ export default function InviteUserForm({
{title}
- {dialog}
+ {dialog}