From 3b5122da5e0c68ee9ed9d8702603e835800ef4c9 Mon Sep 17 00:00:00 2001
From: Bryan Frimin
Date: Fri, 20 Mar 2026 16:55:49 +0100
Subject: [PATCH] Style
Signed-off-by: Bryan Frimin
---
.../settings/AuditLogSettingsPage.tsx | 106 +++++++++---------
1 file changed, 54 insertions(+), 52 deletions(-)
diff --git a/apps/console/src/pages/iam/organizations/settings/AuditLogSettingsPage.tsx b/apps/console/src/pages/iam/organizations/settings/AuditLogSettingsPage.tsx
index 0867c854b..586093869 100644
--- a/apps/console/src/pages/iam/organizations/settings/AuditLogSettingsPage.tsx
+++ b/apps/console/src/pages/iam/organizations/settings/AuditLogSettingsPage.tsx
@@ -5,23 +5,23 @@ import {
Button,
IconChevronDown,
Spinner,
+ Table,
Tbody,
Td,
Th,
Thead,
- Table,
Tr,
} from "@probo/ui";
import {
- type PreloadedQuery,
graphql,
+ type PreloadedQuery,
useFragment,
usePaginationFragment,
usePreloadedQuery,
} from "react-relay";
-import type { AuditLogSettingsPageQuery } from "#/__generated__/iam/AuditLogSettingsPageQuery.graphql";
import type { AuditLogSettingsPageFragment$key } from "#/__generated__/iam/AuditLogSettingsPageFragment.graphql";
+import type { AuditLogSettingsPageQuery } from "#/__generated__/iam/AuditLogSettingsPageQuery.graphql";
import type { AuditLogSettingsPageRefetchQuery } from "#/__generated__/iam/AuditLogSettingsPageRefetchQuery.graphql";
import type { AuditLogSettingsPageRowFragment$key } from "#/__generated__/iam/AuditLogSettingsPageRowFragment.graphql";
@@ -93,10 +93,10 @@ function ActionBadge({ action }: { action: string }) {
const verb = parts[parts.length - 1];
if (
- verb === "create" ||
- verb === "upload" ||
- verb === "import" ||
- verb === "publish"
+ verb === "create"
+ || verb === "upload"
+ || verb === "import"
+ || verb === "publish"
) {
return {action};
}
@@ -104,10 +104,10 @@ function ActionBadge({ action }: { action: string }) {
return {action};
}
if (
- verb === "update" ||
- verb === "assign" ||
- verb === "unassign" ||
- verb === "unarchive"
+ verb === "update"
+ || verb === "assign"
+ || verb === "unassign"
+ || verb === "unarchive"
) {
return {action};
}
@@ -169,13 +169,13 @@ export function AuditLogSettingsPage(props: {
throw new Error("Relay node is not an organization");
}
- const { data, loadNext, hasNext, isLoadingNext } =
- usePaginationFragment<
+ const { data, loadNext, hasNext, isLoadingNext }
+ = usePaginationFragment<
AuditLogSettingsPageRefetchQuery,
AuditLogSettingsPageFragment$key
>(auditLogSettingsPageFragment, organization);
- const entries = data?.auditLogEntries?.edges?.map((e) => e.node) ?? [];
+ const entries = data?.auditLogEntries?.edges?.map(e => e.node) ?? [];
const totalCount = data?.auditLogEntries?.totalCount ?? 0;
return (
@@ -189,45 +189,47 @@ export function AuditLogSettingsPage(props: {
- {entries.length === 0 ? (
-
-
- {__("No audit log entries yet.")}
-
-
- ) : (
-
-
- {`${__("Showing")} ${entries.length} ${__("of")} ${totalCount} ${__("entries")}`}
-
-
-
-
- | {__("Date")} |
- {__("Actor")} |
- {__("Action")} |
- {__("Resource")} |
-
-
-
- {entries.map((entry) => (
-
- ))}
-
-
- {hasNext && (
-
+ {entries.length === 0
+ ? (
+
+
+ {__("No audit log entries yet.")}
+
+
+ )
+ : (
+
+
+ {`${__("Showing")} ${entries.length} ${__("of")} ${totalCount} ${__("entries")}`}
+
+
+
+
+ | {__("Date")} |
+ {__("Actor")} |
+ {__("Action")} |
+ {__("Resource")} |
+
+
+
+ {entries.map(entry => (
+
+ ))}
+
+
+ {hasNext && (
+
+ )}
+
)}
-
- )}
);
}