This commit is contained in:
Daniel Hougaard
2024-03-29 16:24:15 +01:00
parent 2aacd54116
commit 5894df4370
4 changed files with 27 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ export const getDefaultOnPremFeatures = (): TFeatureSet => ({
status: null,
trial_end: null,
has_used_trial: true,
secretApproval: false,
secretApproval: true,
secretRotation: true
});

View File

@@ -0,0 +1,15 @@
import { twMerge } from "tailwind-merge";
interface IProps {
className?: string;
}
const Divider = ({ className }: IProps): JSX.Element => {
return (
<div className={twMerge("flex items-center px-2 opacity-50", className)}>
<div aria-hidden="true" className="h-5 w-full grow border border-t border-mineshaft-200" />
</div>
);
};
export default Divider;

View File

@@ -3,6 +3,8 @@ import { faLock } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { twMerge } from "tailwind-merge";
import { Button } from "../v2";
type Props = {
containerClassName?: string;
className?: string;
@@ -32,6 +34,9 @@ export const PermissionDeniedBanner = ({ containerClassName, className, children
)}
</div>
</div>
<Button className="mt-3 ml-[7.5rem]" size="xs">
Request access
</Button>
</div>
</div>
);

View File

@@ -56,13 +56,19 @@ export const SecretApprovalPage = () => {
<TabPanel value={TabSection.SecretApprovalRequests}>
<SecretApprovalRequest />
</TabPanel>
<TabPanel value={TabSection.SecretPolicies}>
<SecretApprovalPolicyList workspaceId={projectId} />
</TabPanel>
<TabPanel value={TabSection.SecretApprovalRequests}>
<SecretApprovalRequest />
</TabPanel>
<TabPanel value={TabSection.ResourceApprovalRequests}>
<AccessApprovalRequest projectId={projectId} projectSlug={projectSlug} />
</TabPanel>
<TabPanel value={TabSection.ResourcePolicies}>
<AccessApprovalPolicyList workspaceId={projectId} />
</TabPanel>