chore: clean api

This commit is contained in:
lawvs 2022-07-26 17:32:08 +08:00
parent f8485d895b
commit 3582d7c013

View File

@ -119,24 +119,6 @@ export const useRecastView = () => {
[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
*/
@ -159,11 +141,11 @@ export const useRecastView = () => {
recastViews,
setCurrentView,
addView,
updateView,
// updateView,
renameView,
removeView,
// TODO reorder API
withKanbanView,
// TODO reorder API
};
};