mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-21 08:28:22 +00:00
feat: removed last bit of workspace in frontend. Fatality!
This commit is contained in:
@@ -48,7 +48,7 @@ import {
|
||||
useRequestProjectAccess,
|
||||
useSearchProjects
|
||||
} from "@app/hooks/api";
|
||||
import { ProjectType, Project, WorkspaceEnv } from "@app/hooks/api/workspace/types";
|
||||
import { ProjectType, Project, ProjectEnv } from "@app/hooks/api/projects/types";
|
||||
import {
|
||||
ProjectListToggle,
|
||||
ProjectListView
|
||||
@@ -155,7 +155,7 @@ export const AllProjectView = ({
|
||||
const handleAccessProject = async (
|
||||
type: ProjectType,
|
||||
projectId: string,
|
||||
environments: WorkspaceEnv[]
|
||||
environments: ProjectEnv[]
|
||||
) => {
|
||||
try {
|
||||
await orgAdminAccessProject.mutateAsync({
|
||||
|
||||
@@ -39,11 +39,11 @@ import {
|
||||
setUserTablePreference
|
||||
} from "@app/helpers/userTablePreferences";
|
||||
import { usePagination, useResetPageHelper } from "@app/hooks";
|
||||
import { useGetUserWorkspaces } from "@app/hooks/api";
|
||||
import { useGetUserProjects } from "@app/hooks/api";
|
||||
import { OrderByDirection } from "@app/hooks/api/generic/types";
|
||||
import { useUpdateUserProjectFavorites } from "@app/hooks/api/users/mutation";
|
||||
import { useGetUserProjectFavorites } from "@app/hooks/api/users/queries";
|
||||
import { ProjectType, Project } from "@app/hooks/api/workspace/types";
|
||||
import { ProjectType, Project } from "@app/hooks/api/projects/types";
|
||||
import {
|
||||
ProjectListToggle,
|
||||
ProjectListView
|
||||
@@ -79,7 +79,7 @@ export const MyProjectView = ({
|
||||
{}
|
||||
);
|
||||
|
||||
const { data: workspaces = [], isPending: isWorkspaceLoading } = useGetUserWorkspaces();
|
||||
const { data: workspaces = [], isPending: isWorkspaceLoading } = useGetUserProjects();
|
||||
const {
|
||||
setPage,
|
||||
perPage,
|
||||
|
||||
Reference in New Issue
Block a user