mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
73eed69aa6
* fix: handled undefined issue_id in list layout * dev: issue detail store and optimization * dev: issue filter and list operations * fix: typo on labels update * dev: Handled all issues in the list layout in project issues * dev: handled kanban and auick add issue in swimlanes * chore: fixed peekoverview in kanban * chore: fixed peekoverview in calendar * chore: fixed peekoverview in gantt * chore: updated quick add in the gantt chart * chore: handled issue detail properties and resolved build issues --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
12 lines
361 B
TypeScript
12 lines
361 B
TypeScript
import { useContext } from "react";
|
|
// mobx store
|
|
import { StoreContext } from "contexts/store-context";
|
|
// types
|
|
import { IPageStore } from "store/page.store";
|
|
|
|
export const usePage = (): any => {
|
|
const context = useContext(StoreContext);
|
|
if (context === undefined) throw new Error("usePage must be used within StoreProvider");
|
|
return context as any;
|
|
};
|