fix: resolved v2 secret update bug and object returning in import secret empty

This commit is contained in:
akhilmhdh
2023-07-27 16:29:43 +05:30
parent d458bd7948
commit b6b3c8a736
7 changed files with 77 additions and 3 deletions
@@ -0,0 +1,19 @@
import { useState } from "react";
import { useTranslation } from "react-i18next";
import { useRouter } from "next/router";
import { useOrganization, useWorkspace } from "@app/context";
import { useGetUserWsKey } from "@app/hooks/api";
export const SecretOverviewPage = () => {
const { t } = useTranslation();
const router = useRouter();
const { currentWorkspace, isLoading } = useWorkspace();
const { currentOrg } = useOrganization();
const workspaceId = currentWorkspace?._id as string;
const { data: latestFileKey } = useGetUserWsKey(workspaceId);
const [searchFilter, setSearchFilter] = useState("");
const secretPath = router.query?.secretPath as string;
return <div>Secret overview page</div>;
};