diff --git a/frontend/src/pages/pam/ApprovalsPage/components/PolicyTab/components/PoliciesTable.tsx b/frontend/src/pages/pam/ApprovalsPage/components/PolicyTab/components/PoliciesTable.tsx index 3e8801239..03bc83ac9 100644 --- a/frontend/src/pages/pam/ApprovalsPage/components/PolicyTab/components/PoliciesTable.tsx +++ b/frontend/src/pages/pam/ApprovalsPage/components/PolicyTab/components/PoliciesTable.tsx @@ -197,7 +197,7 @@ export const PoliciesTable = ({ handlePopUpOpen }: Props) => { {isExpanded && ( -
+
Approval Conditions diff --git a/frontend/src/pages/pam/ApprovalsPage/components/PolicyTab/components/PolicySteps/PolicyDetailsStep.tsx b/frontend/src/pages/pam/ApprovalsPage/components/PolicyTab/components/PolicySteps/PolicyDetailsStep.tsx index d365283d0..c6f4a3878 100644 --- a/frontend/src/pages/pam/ApprovalsPage/components/PolicyTab/components/PolicySteps/PolicyDetailsStep.tsx +++ b/frontend/src/pages/pam/ApprovalsPage/components/PolicyTab/components/PolicySteps/PolicyDetailsStep.tsx @@ -1,4 +1,3 @@ -import { useEffect } from "react"; import { Controller, useFormContext } from "react-hook-form"; import { TtlFormLabel } from "@app/components/features"; @@ -7,15 +6,7 @@ import { FormControl, Input } from "@app/components/v2"; import { TPolicyForm } from "../PolicySchema"; export const PolicyDetailsStep = () => { - const { - control, - formState: { errors } - } = useFormContext(); - - useEffect(() => { - console.log("YOOOO"); - console.log(errors); - }, [errors]); + const { control } = useFormContext(); return (
diff --git a/frontend/src/pages/pam/ApprovalsPage/components/PolicyTab/components/PolicySteps/PolicyReviewStep.tsx b/frontend/src/pages/pam/ApprovalsPage/components/PolicyTab/components/PolicySteps/PolicyReviewStep.tsx index d4c4a46bc..8caf65eea 100644 --- a/frontend/src/pages/pam/ApprovalsPage/components/PolicyTab/components/PolicySteps/PolicyReviewStep.tsx +++ b/frontend/src/pages/pam/ApprovalsPage/components/PolicyTab/components/PolicySteps/PolicyReviewStep.tsx @@ -24,7 +24,7 @@ export const PolicyReviewStep = () => { const { data: members = [] } = useGetWorkspaceUsers(projectId); const { data: groups = [] } = useListWorkspaceGroups(projectId); - const { name, maxRequestTtl, conditions, constraints, steps } = watch(); + const { name, conditions, constraints, steps } = watch(); const getApproverLabel = (approverId: string, approverType: ApproverType) => { if (approverType === ApproverType.User) { diff --git a/frontend/src/pages/pam/ApprovalsPage/components/PolicyTab/components/PolicySteps/index.tsx b/frontend/src/pages/pam/ApprovalsPage/components/PolicyTab/components/PolicySteps/index.tsx index 3a59d2b78..6534a1727 100644 --- a/frontend/src/pages/pam/ApprovalsPage/components/PolicyTab/components/PolicySteps/index.tsx +++ b/frontend/src/pages/pam/ApprovalsPage/components/PolicyTab/components/PolicySteps/index.tsx @@ -1,4 +1,3 @@ export { PolicyApprovalSteps } from "./PolicyApprovalSteps"; -export { PolicyConstraintsStep } from "./PolicyConstraintsStep"; export { PolicyDetailsStep } from "./PolicyDetailsStep"; export { PolicyReviewStep } from "./PolicyReviewStep"; diff --git a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountsTable.tsx b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountsTable.tsx index 61a09c1b0..b3bd9676b 100644 --- a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountsTable.tsx +++ b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountsTable.tsx @@ -5,10 +5,10 @@ import { faArrowDown, faArrowUp, faCheckCircle, + faClipboardCheck, faFilter, faFolderPlus, faMagnifyingGlass, - faPen, faPlus, faSearch } from "@fortawesome/free-solid-svg-icons"; @@ -328,11 +328,11 @@ export const PamAccountsTable = ({ projectId }: Props) => { { control={control} render={({ field, fieldState: { error } }) => ( { render={({ field, fieldState: { error } }) => ( } - helperText="Duration of access requested" errorText={error?.message} isError={Boolean(error?.message)} > @@ -139,7 +139,6 @@ const Content = ({ onOpenChange, account, accountPath }: Props) => { control={control} render={({ field, fieldState: { error } }) => ( {