refactor: abstract header adapter (#2580)

This commit is contained in:
Himself65
2023-05-29 22:52:04 +08:00
committed by GitHub
parent 402d12a0e1
commit 20cc082a02
24 changed files with 283 additions and 183 deletions
+1 -2
View File
@@ -1,8 +1,7 @@
import type { WorkspaceSubPath } from '@affine/workspace/type';
import type { NextRouter } from 'next/router';
import { useCallback } from 'react';
import type { WorkspaceSubPath } from '../shared';
export const enum RouteLogic {
REPLACE = 'replace',
PUSH = 'push',