Feat: Request access

This commit is contained in:
Daniel Hougaard
2024-05-07 17:30:35 +02:00
parent 7a3a9ca9ea
commit 4326ce970a
6 changed files with 7 additions and 9 deletions
@@ -67,6 +67,10 @@ export const SecretApprovalPage = () => {
<TabPanel value={TabSection.ResourcePolicies}>
<AccessApprovalPolicyList workspaceId={projectId} />
</TabPanel>
<TabPanel value={TabSection.ResourcePolicies}>
<AccessApprovalPolicyList workspaceId={workspaceId} />
</TabPanel>
</Tabs>
</div>
);
@@ -83,7 +83,7 @@ export const AccessApprovalPolicyList = ({ workspaceId }: IProps) => {
return (
<div>
<div className="mb-6 flex justify-between items-end">
<div className="mb-6 flex items-end justify-between">
<div className="flex flex-col">
<span className="text-xl font-semibold text-mineshaft-100">Access Request Policies</span>
<div className="mt-2 text-sm text-bunker-300">
@@ -177,7 +177,6 @@ export const AccessPolicyForm = ({
/>
<Controller
control={control}
name="secretPath"
render={({ field, fieldState: { error } }) => (
<FormControl label="Secret Path" isError={Boolean(error)} errorText={error?.message}>
@@ -187,8 +186,6 @@ export const AccessPolicyForm = ({
/>
<Controller
control={control}
name="approvers"
render={({ field: { value, onChange }, fieldState: { error } }) => (
<FormControl
label="Approvers Required"