Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: lint

Piyush Gupta0ed7eec95349
diff --git a/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersSection.tsx b/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersSection.tsx
index ccbd64d0af..da1a627f63 100644
--- a/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersSection.tsx
+++ b/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersSection.tsx
@@ -76,9 +76,9 @@ export const GroupMembersSection = ({ groupId, groupSlug }: Props) => {
};
return (
- <div className="border-mineshaft-600 bg-mineshaft-900 w-full rounded-lg border p-4">
- <div className="border-mineshaft-400 flex items-center justify-between border-b pb-4">
- <h3 className="text-mineshaft-100 text-lg font-medium">Group Members</h3>
+ <div className="w-full rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
+ <div className="flex items-center justify-between border-b border-mineshaft-400 pb-4">
+ <h3 className="text-lg font-medium text-mineshaft-100">Group Members</h3>
<OrgPermissionCan I={OrgPermissionGroupActions.Edit} a={OrgPermissionSubjects.Groups}>
{(isAllowed) => (
<div className="mb-4 flex items-center justify-center">
diff --git a/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersTable.tsx b/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersTable.tsx
index 61d2a394bd..0902b01d2f 100644
--- a/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersTable.tsx
+++ b/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersTable.tsx
@@ -138,7 +138,7 @@ export const GroupMembersTable = ({ groupId, groupSlug, handlePopUpOpen }: Props
variant="plain"
size="sm"
className={twMerge(
- "border-mineshaft-600 bg-mineshaft-800 hover:border-primary/60 hover:bg-primary/10 flex h-10 w-11 items-center justify-center overflow-hidden border p-0 transition-all",
+ "flex h-10 w-11 items-center justify-center overflow-hidden border border-mineshaft-600 bg-mineshaft-800 p-0 transition-all hover:border-primary/60 hover:bg-primary/10",
memberTypeFilter.length > 0 && "border-primary/50 text-primary"
)}
>
@@ -147,7 +147,7 @@ export const GroupMembersTable = ({ groupId, groupSlug, handlePopUpOpen }: Props
</DropdownMenuTrigger>
<DropdownMenuContent
sideOffset={2}
- className="thin-scrollbar max-h-[70vh] overflow-y-auto"
+ className="max-h-[70vh] thin-scrollbar overflow-y-auto"
align="end"
>
<DropdownMenuLabel>Filter by Member Type</DropdownMenuLabel>
diff --git a/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx b/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx
index 5c2c35168a..a5ac89593d 100644
--- a/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx
+++ b/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx
@@ -28,26 +28,26 @@ export const PamSessionLogsSection = ({ session }: Props) => {
const hasLogs = session.logs.length > 0;
return (
- <div className="border-mineshaft-600 bg-mineshaft-900 flex h-full w-full flex-col gap-4 rounded-lg border p-4">
- <div className="border-mineshaft-400 flex items-center border-b pb-4">
- <h3 className="text-mineshaft-100 text-lg font-medium">Session Logs</h3>
+ <div className="flex h-full w-full flex-col gap-4 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
+ <div className="flex items-center border-b border-mineshaft-400 pb-4">
+ <h3 className="text-lg font-medium text-mineshaft-100">Session Logs</h3>
</div>
{isDatabaseSession && hasLogs && <CommandLogView logs={session.logs as TPamCommandLog[]} />}
{isSSHSession && hasLogs && <TerminalEventView events={session.logs as TTerminalEvent[]} />}
{isHttpSession && hasLogs && <HttpEventView events={session.logs as THttpEvent[]} />}
{isAwsIamSession && (
- <div className="text-bunker-300 flex grow items-center justify-center">
+ <div className="flex grow items-center justify-center text-bunker-300">
<div className="text-center">
<div className="mb-2">AWS Console session activity is logged in AWS CloudTrail</div>
- <div className="text-bunker-400 text-xs">
+ <div className="text-xs text-bunker-400">
View detailed activity logs for this session in your AWS CloudTrail console.
<br />
<a
href="https://console.aws.amazon.com/cloudtrail"
target="_blank"
rel="noopener noreferrer"
- className="text-primary-400 hover:text-primary-300 mt-2 inline-flex items-center gap-1"
+ className="mt-2 inline-flex items-center gap-1 text-primary-400 hover:text-primary-300"
>
Open AWS CloudTrail
<FontAwesomeIcon icon={faUpRightFromSquare} className="size-3" />
@@ -57,10 +57,10 @@ export const PamSessionLogsSection = ({ session }: Props) => {
</div>
)}
{!hasLogs && !isAwsIamSession && (
- <div className="text-bunker-300 flex grow items-center justify-center">
+ <div className="flex grow items-center justify-center text-bunker-300">
<div className="text-center">
<div className="mb-2">Session logs are not yet available</div>
- <div className="text-bunker-400 text-xs">
+ <div className="text-xs text-bunker-400">
Logs will be uploaded after the session duration has elapsed.
<br />
If logs do not appear after some time, please contact your Gateway administrators.
diff --git a/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersSection.tsx b/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersSection.tsx
index cf6e9682b8..4534e4371e 100644
--- a/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersSection.tsx
+++ b/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersSection.tsx
@@ -8,9 +8,9 @@ type Props = {
export const GroupMembersSection = ({ groupMembership }: Props) => {
return (
- <div className="border-mineshaft-600 bg-mineshaft-900 w-full rounded-lg border p-4">
- <div className="border-mineshaft-400 flex items-center justify-between border-b pb-4">
- <h3 className="text-mineshaft-100 text-lg font-medium">Group Members</h3>
+ <div className="w-full rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
+ <div className="flex items-center justify-between border-b border-mineshaft-400 pb-4">
+ <h3 className="text-lg font-medium text-mineshaft-100">Group Members</h3>
</div>
<div className="py-4">
<GroupMembersTable groupMembership={groupMembership} />
diff --git a/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersTable.tsx b/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersTable.tsx
index 34118021f2..f8854a2142 100644
--- a/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersTable.tsx
+++ b/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersTable.tsx
@@ -183,7 +183,7 @@ export const GroupMembersTable = ({ groupMembership }: Props) => {
variant="plain"
size="sm"
className={twMerge(
- "border-mineshaft-600 bg-mineshaft-800 hover:border-primary/60 hover:bg-primary/10 flex h-10 w-11 items-center justify-center overflow-hidden border p-0 transition-all",
+ "flex h-10 w-11 items-center justify-center overflow-hidden border border-mineshaft-600 bg-mineshaft-800 p-0 transition-all hover:border-primary/60 hover:bg-primary/10",
memberTypeFilter.length > 0 && "border-primary/50 text-primary"
)}
>
@@ -192,7 +192,7 @@ export const GroupMembersTable = ({ groupMembership }: Props) => {
</DropdownMenuTrigger>
<DropdownMenuContent
sideOffset={2}
- className="thin-scrollbar max-h-[70vh] overflow-y-auto"
+ className="max-h-[70vh] thin-scrollbar overflow-y-auto"
align="end"
>
<DropdownMenuLabel>Filter by Member Type</DropdownMenuLabel>