mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 07:27:43 +00:00
fix: type fixes
This commit is contained in:
@@ -235,7 +235,6 @@ export const registerSecretApprovalRequestRouter = async (server: FastifyZodProv
|
|||||||
const tagSchema = SecretTagsSchema.pick({
|
const tagSchema = SecretTagsSchema.pick({
|
||||||
id: true,
|
id: true,
|
||||||
slug: true,
|
slug: true,
|
||||||
name: true,
|
|
||||||
color: true
|
color: true
|
||||||
})
|
})
|
||||||
.array()
|
.array()
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ export const registerSnapshotRouter = async (server: FastifyZodProvider) => {
|
|||||||
tags: SecretTagsSchema.pick({
|
tags: SecretTagsSchema.pick({
|
||||||
id: true,
|
id: true,
|
||||||
slug: true,
|
slug: true,
|
||||||
name: true,
|
|
||||||
color: true
|
color: true
|
||||||
}).array()
|
}).array()
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ export const sanitizedSshCertificate = SshCertificatesSchema.pick({
|
|||||||
sshCertificateTemplateId: true,
|
sshCertificateTemplateId: true,
|
||||||
serialNumber: true,
|
serialNumber: true,
|
||||||
certType: true,
|
certType: true,
|
||||||
publicKey: true,
|
|
||||||
principals: true,
|
principals: true,
|
||||||
keyId: true,
|
keyId: true,
|
||||||
notBefore: true,
|
notBefore: true,
|
||||||
|
|||||||
@@ -1,24 +1,19 @@
|
|||||||
import { Helmet } from "react-helmet";
|
import { Helmet } from "react-helmet";
|
||||||
import { useNavigate, useSearch } from "@tanstack/react-router";
|
import { useNavigate, useSearch } from "@tanstack/react-router";
|
||||||
|
|
||||||
import { createNotification } from "@app/components/notifications";
|
|
||||||
import { Tab, TabList, TabPanel, Tabs } from "@app/components/v2";
|
import { Tab, TabList, TabPanel, Tabs } from "@app/components/v2";
|
||||||
import { ROUTE_PATHS } from "@app/const/routes";
|
import { ROUTE_PATHS } from "@app/const/routes";
|
||||||
import { usePopUp } from "@app/hooks";
|
import { usePopUp } from "@app/hooks";
|
||||||
import { useDeleteSharedSecret } from "@app/hooks/api/secretSharing";
|
|
||||||
|
|
||||||
import { RequestSecretTab } from "./components/RequestSecret/RequestSecretTab";
|
import { RequestSecretTab } from "./components/RequestSecret/RequestSecretTab";
|
||||||
import { ShareSecretTab } from "./components/ShareSecret/ShareSecretTab";
|
import { ShareSecretTab } from "./components/ShareSecret/ShareSecretTab";
|
||||||
|
|
||||||
type DeleteModalData = { name: string; id: string };
|
|
||||||
|
|
||||||
enum SecretSharingPageTabs {
|
enum SecretSharingPageTabs {
|
||||||
ShareSecret = "share-secret",
|
ShareSecret = "share-secret",
|
||||||
RequestSecret = "request-secret"
|
RequestSecret = "request-secret"
|
||||||
}
|
}
|
||||||
|
|
||||||
export const ShareSecretSection = () => {
|
export const ShareSecretSection = () => {
|
||||||
const deleteSharedSecret = useDeleteSharedSecret();
|
|
||||||
const { popUp, handlePopUpToggle, handlePopUpClose, handlePopUpOpen } = usePopUp([
|
const { popUp, handlePopUpToggle, handlePopUpClose, handlePopUpOpen } = usePopUp([
|
||||||
"createSharedSecret",
|
"createSharedSecret",
|
||||||
"deleteSharedSecretConfirmation",
|
"deleteSharedSecretConfirmation",
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
export { ShareSecretSection } from "./ShareSecretSection";
|
|
||||||
+1
-1
@@ -13,7 +13,7 @@ import { secretKeys } from "@app/hooks/api/secrets/queries";
|
|||||||
import { SecretType, SecretV3RawSanitized } from "@app/hooks/api/secrets/types";
|
import { SecretType, SecretV3RawSanitized } from "@app/hooks/api/secrets/types";
|
||||||
import { secretSnapshotKeys } from "@app/hooks/api/secretSnapshots/queries";
|
import { secretSnapshotKeys } from "@app/hooks/api/secretSnapshots/queries";
|
||||||
import { WsTag } from "@app/hooks/api/types";
|
import { WsTag } from "@app/hooks/api/types";
|
||||||
import { AddShareSecretModal } from "@app/pages/organization/SecretSharingPage/components/AddShareSecretModal";
|
import { AddShareSecretModal } from "@app/pages/organization/SecretSharingPage/components/ShareSecret/AddShareSecretModal";
|
||||||
|
|
||||||
import { useSelectedSecretActions, useSelectedSecrets } from "../../SecretMainPage.store";
|
import { useSelectedSecretActions, useSelectedSecrets } from "../../SecretMainPage.store";
|
||||||
import { SecretDetailSidebar } from "./SecretDetailSidebar";
|
import { SecretDetailSidebar } from "./SecretDetailSidebar";
|
||||||
|
|||||||
Reference in New Issue
Block a user