mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-24 04:27:27 +08:00
chore: clean api
This commit is contained in:
@@ -119,24 +119,6 @@ export const useRecastView = () => {
|
|||||||
[recastViews, setViews]
|
[recastViews, setViews]
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use updateView instead
|
|
||||||
*/
|
|
||||||
const changeScene = useCallback(
|
|
||||||
async (
|
|
||||||
id: RecastViewId,
|
|
||||||
newScene: RecastScene.Page | RecastScene.Kanban
|
|
||||||
) => {
|
|
||||||
const curView = getView(id);
|
|
||||||
if (curView.type === newScene) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
curView.type = newScene;
|
|
||||||
await setViews(recastViews);
|
|
||||||
},
|
|
||||||
[getView, recastViews, setViews]
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get kanban ability
|
* Get kanban ability
|
||||||
*/
|
*/
|
||||||
@@ -159,11 +141,11 @@ export const useRecastView = () => {
|
|||||||
recastViews,
|
recastViews,
|
||||||
setCurrentView,
|
setCurrentView,
|
||||||
addView,
|
addView,
|
||||||
updateView,
|
// updateView,
|
||||||
renameView,
|
renameView,
|
||||||
removeView,
|
removeView,
|
||||||
|
// TODO reorder API
|
||||||
|
|
||||||
withKanbanView,
|
withKanbanView,
|
||||||
// TODO reorder API
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user