mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-11 08:28:59 +00:00
43 lines
1.4 KiB
TypeScript
43 lines
1.4 KiB
TypeScript
import { Helmet } from "react-helmet";
|
|
|
|
import { PageHeader } from "@app/components/v2";
|
|
import { useProject } from "@app/context";
|
|
import {
|
|
ProjectPermissionAppConnectionActions,
|
|
ProjectPermissionSub
|
|
} from "@app/context/ProjectPermissionContext/types";
|
|
import { withProjectPermission } from "@app/hoc";
|
|
import { AppConnectionsTable } from "@app/pages/organization/AppConnections/AppConnectionsPage/components";
|
|
|
|
export const AppConnectionsPage = withProjectPermission(
|
|
() => {
|
|
const { currentProject } = useProject();
|
|
|
|
return (
|
|
<div className="bg-bunker-800">
|
|
<Helmet>
|
|
<title>Infisical | App Connections</title>
|
|
<link rel="icon" href="/infisical.ico" />
|
|
<meta property="og:image" content="/images/message.png" />
|
|
</Helmet>
|
|
<div className="flex w-full justify-center bg-bunker-800 text-white">
|
|
<div className="w-full max-w-8xl">
|
|
<PageHeader
|
|
scope={currentProject.type}
|
|
className="w-full"
|
|
title="Project App Connections"
|
|
description="Manage project App Connections"
|
|
/>
|
|
|
|
<AppConnectionsTable projectId={currentProject.id} projectType={currentProject.type} />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
},
|
|
{
|
|
action: ProjectPermissionAppConnectionActions.Read,
|
|
subject: ProjectPermissionSub.AppConnections
|
|
}
|
|
);
|