[WEB-4852] chore: views refactor (#7729)
* chore: refactored view store and services * chore: removed unused import * chore: refactored update view component * fix: lint errors
This commit is contained in:
parent
8bf059535a
commit
85f23b450d
21 changed files with 156 additions and 473 deletions
|
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
|||
// mobx store
|
||||
import { StoreContext } from "@/lib/store-context";
|
||||
// types
|
||||
import type { IGlobalViewStore } from "@/store/global-view.store";
|
||||
import type { IGlobalViewStore } from "@/plane-web/store/global-view.store";
|
||||
|
||||
export const useGlobalView = (): IGlobalViewStore => {
|
||||
const context = useContext(StoreContext);
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
|||
// mobx store
|
||||
import { StoreContext } from "@/lib/store-context";
|
||||
// types
|
||||
import type { IProjectViewStore } from "@/store/project-view.store";
|
||||
import type { IProjectViewStore } from "@/plane-web/store/project-view.store";
|
||||
|
||||
export const useProjectView = (): IProjectViewStore => {
|
||||
const context = useContext(StoreContext);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue