feat: renamed all from depreciated to deprecated and adjust workspace

context file name as well
This commit is contained in:
=
2025-09-16 00:08:42 +05:30
parent f0277e6f0d
commit bf2f8faf9d
25 changed files with 48 additions and 48 deletions
@@ -0,0 +1,22 @@
import { useSuspenseQuery } from "@tanstack/react-query";
import { useParams } from "@tanstack/react-router";
import { projectKeys } from "@app/hooks/api";
import { fetchProjectById } from "@app/hooks/api/projects/queries";
export const useProject = () => {
const params = useParams({
strict: false
});
if (!params.projectId) {
throw new Error("Missing project id");
}
const { data: currentProject } = useSuspenseQuery({
queryKey: projectKeys.getProjectById(params.projectId),
queryFn: () => fetchProjectById(params.projectId as string),
staleTime: Infinity
});
return { currentProject, projectId: currentProject.id };
};
@@ -0,0 +1 @@
export { useProject } from "./ProjectContext";