sortableHeader("name", t("name"))
},
+ {
+ accessorKey: "orgId",
+ friendlyName: t("orgId"),
+ header: () => {t("orgId")}
+ },
{
accessorKey: "createdAt",
friendlyName: t("createdAt"),
@@ -141,11 +146,6 @@ export default function OrgsTable({
);
}
},
- {
- accessorKey: "orgId",
- friendlyName: t("orgId"),
- header: () => {t("orgId")}
- },
{
accessorKey: "subnet",
friendlyName: t("subnet"),
@@ -164,31 +164,19 @@ export default function OrgsTable({
accessorKey: "userCount",
friendlyName: t("users"),
header: () => {t("users")},
- cell: ({ row }) => (
-
- {row.original.userCount}
-
- )
+ cell: ({ row }) => {row.original.userCount}
},
{
accessorKey: "siteCount",
friendlyName: t("sites"),
header: () => {t("sites")},
- cell: ({ row }) => (
-
- {row.original.siteCount}
-
- )
+ cell: ({ row }) => {row.original.siteCount}
},
{
accessorKey: "resourceCount",
friendlyName: t("resources"),
header: () => {t("resources")},
- cell: ({ row }) => (
-
- {row.original.resourceCount}
-
- )
+ cell: ({ row }) => {row.original.resourceCount}
},
{
@@ -205,7 +193,6 @@ export default function OrgsTable({
setIsDeleteModalOpen(true);
}}
variant="outline"
- className="text-red-400 focus:text-destructive "
>
{t("delete")}
@@ -288,8 +275,7 @@ export default function OrgsTable({
rowCount={rowCount}
columnVisibility={{
subnet: false,
- utilitySubnet: false,
- orgId: false
+ utilitySubnet: false
}}
enableColumnVisibility
stickyLeftColumn="name"
diff --git a/src/components/ProfileIcon.tsx b/src/components/ProfileIcon.tsx
index 92266916f..cf1d845d8 100644
--- a/src/components/ProfileIcon.tsx
+++ b/src/components/ProfileIcon.tsx
@@ -9,13 +9,16 @@ import {
DropdownMenuItem,
DropdownMenuLabel,
DropdownMenuSeparator,
+ DropdownMenuSub,
+ DropdownMenuSubContent,
+ DropdownMenuSubTrigger,
DropdownMenuTrigger
} from "@app/components/ui/dropdown-menu";
import { useEnvContext } from "@app/hooks/useEnvContext";
import { toast } from "@app/hooks/useToast";
import { formatAxiosError } from "@app/lib/api";
import { getUserDisplayName } from "@app/lib/getUserDisplayName";
-import { Laptop, LogOut, Moon, Sun, Smartphone, Trash2 } from "lucide-react";
+import { Check, Laptop, Moon, Sun, Trash2 } from "lucide-react";
import { useTheme } from "next-themes";
import { useRouter } from "next/navigation";
import Link from "next/link";
@@ -149,42 +152,49 @@ export default function ProfileIcon() {
>
{t("changePassword")}
-
>
)}
setOpenViewDevices(true)}>
-
{t("viewDevices") || "View Devices"}
{t("theme")}
- {(["light", "dark", "system"] as const).map(
- (themeOption) => (
- handleThemeChange(themeOption)}
- >
- {themeOption === "light" && (
-
- )}
- {themeOption === "dark" && (
-
- )}
- {themeOption === "system" && (
-
- )}
-
- {t(themeOption)}
-
- {userTheme === themeOption && (
-
-
-
- )}
-
- )
- )}
+
+
+ {userTheme === "light" && (
+
+ )}
+ {userTheme === "dark" && (
+
+ )}
+ {userTheme === "system" && (
+
+ )}
+ {t(userTheme)}
+
+
+ {(["light", "dark", "system"] as const).map(
+ (themeOption) => (
+
+ handleThemeChange(themeOption)
+ }
+ className="flex items-center gap-2"
+ >
+ {userTheme === themeOption && (
+
+ )}
+
+ {t(themeOption)}
+
+
+ )
+ )}
+
+
+ {t("language")}
{user?.type === UserType.Internal && !user?.serverAdmin && (