Move ST sections to members page (now access control)

This commit is contained in:
Tuan Dang
2023-11-18 18:29:13 +02:00
parent 085ddb2c48
commit 341a745843
21 changed files with 1617 additions and 81 deletions
@@ -3,12 +3,10 @@ import { useTranslation } from "react-i18next";
import { Tab } from "@headlessui/react";
import { ProjectGeneralTab } from "./components/ProjectGeneralTab";
import { ProjectServiceTokensTab } from "./components/ProjectServiceTokensTab";
import { WebhooksTab } from "./components/WebhooksTab";
const tabs = [
{ name: "General", key: "tab-project-general" },
{ name: "Service Tokens", key: "tab-project-service-tokens" },
{ name: "Webhooks", key: "tab-project-webhooks" }
];
@@ -41,9 +39,6 @@ export const ProjectSettingsPage = () => {
<Tab.Panel>
<ProjectGeneralTab />
</Tab.Panel>
<Tab.Panel>
<ProjectServiceTokensTab />
</Tab.Panel>
<Tab.Panel>
<WebhooksTab />
</Tab.Panel>
@@ -1,11 +0,0 @@
import { ServiceTokenSection } from "../ServiceTokenSection";
// import { ServiceTokenV3Section } from "../ServiceTokenV3Section";
export const ProjectServiceTokensTab = () => {
return (
<>
{/* <ServiceTokenV3Section /> */}
<ServiceTokenSection />
</>
);
}
@@ -1 +0,0 @@
export { ProjectServiceTokensTab } from "./ProjectServiceTokensTab";
@@ -3,5 +3,4 @@ export { DeleteProjectSection } from "./DeleteProjectSection";
export { E2EESection } from "./E2EESection";
export { EnvironmentSection } from "./EnvironmentSection";
export { ProjectNameChangeSection } from "./ProjectNameChangeSection";
export { SecretTagsSection } from "./SecretTagsSection";
export { ServiceTokenSection } from "./ServiceTokenSection";
export { SecretTagsSection } from "./SecretTagsSection";