Merge pull request #2198 from Infisical/maidul-dwdqwdfwef

Lint fixes to unblock prod pipeline
This commit is contained in:
Maidul Islam
2024-07-30 11:06:01 -04:00
committed by GitHub
5 changed files with 12 additions and 12 deletions

View File

@ -1,11 +1,11 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { useRouter } from 'next/router';
import { useEffect, useState } from 'react';
import { useEffect, useState } from "react";
import { useRouter } from "next/router";
import { Tab, TabList, TabPanel, Tabs } from "@app/components/v2";
import { OrgPermissionActions, OrgPermissionSubjects } from "@app/context";
import { withPermission } from "@app/hoc";
import { isTabSection, TabSections } from "@app/views/Org/Types";;
import { isTabSection, TabSections } from "@app/views/Org/Types";
import { OrgIdentityTab, OrgMembersTab, OrgRoleTabSection } from "./components";

View File

@ -9,7 +9,7 @@ import { useWorkspace } from "@app/context";
import { ProjectMembershipRole } from "@app/hooks/api/roles/types";
import { TWorkspaceUser } from "@app/hooks/api/types";
import { UsePopUpState } from "@app/hooks/usePopUp";
import { TabSections } from "@app/views/Org/Types";;
import { TabSections } from "@app/views/Org/Types";
type Props = {
membership: TWorkspaceUser;

View File

@ -1,13 +1,13 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { useRouter } from 'next/router';
import { useEffect, useState } from 'react';
import { useEffect, useState } from "react";
import { useRouter } from "next/router";
import { Tab, TabList, TabPanel, Tabs } from "@app/components/v2";
import { ProjectPermissionActions, ProjectPermissionSub } from "@app/context";
import { withProjectPermission } from "@app/hoc";
import { isTabSection,TabSections } from "../Types";
import { IdentityTab, MembersTab,ProjectRoleListTab, ServiceTokenTab } from "./components";
import { TabSections, isTabSection } from '../Types';
export const MembersPage = withProjectPermission(

View File

@ -20,8 +20,8 @@ import { withProjectPermission } from "@app/hoc";
import { useDeleteProjectRole,useGetProjectRoleBySlug } from "@app/hooks/api";
import { usePopUp } from "@app/hooks/usePopUp";
import { TabSections } from "../Types";
import { RoleDetailsSection, RoleModal, RolePermissionsSection } from "./components";
import { TabSections } from '../Types';
export const RolePage = withProjectPermission(
() => {

View File

@ -72,11 +72,11 @@ export const SelectionPanel = ({
const getDeleteModalTitle = () => {
if (selectedFolderCount > 0 && selectedKeysCount > 0) {
return "Do you want to delete the selected secrets and folders across environments?";
} else if (selectedKeysCount > 0 && selectedFolderCount === 0) {
return "Do you want to delete the selected secrets across environments?";
} else {
return "Do you want to delete the selected folders across environments?";
}
if (selectedKeysCount > 0) {
return "Do you want to delete the selected secrets across environments?";
}
return "Do you want to delete the selected folders across environments?";
}
const handleBulkDelete = async () => {