mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
a048e513b7
* chore: spreadsheet view context * chore: spreadsheet context provider * chore: spreadsheet view context * chore: display filters and properties added in workspace view and code refactor * fix: build error fix * chore: set sub-issue display option to false for global views --------- Co-authored-by: gurusainath <gurusainath007@gmail.com>
12 lines
390 B
TypeScript
12 lines
390 B
TypeScript
import { useContext } from "react";
|
|
// types
|
|
import { IWorkspaceViewContext, WorkspaceIssueViewContext } from "contexts/workspace-view-context";
|
|
|
|
export const useWorkspaceView = (): IWorkspaceViewContext => {
|
|
const context = useContext(WorkspaceIssueViewContext);
|
|
|
|
if (!context) throw new Error("useWorkspaceView must be used within a WorkspaceIssueViewContext");
|
|
|
|
return context;
|
|
};
|