mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
chore: add noUnusedLocals and noUnusedParameters rules (#3476)
Co-authored-by: LongYinan <lynweklm@gmail.com>
This commit is contained in:
@@ -15,7 +15,7 @@ export function useBlockSuiteWorkspaceName(blockSuiteWorkspace: Workspace) {
|
||||
);
|
||||
const writableAtom = atom(
|
||||
get => get(baseAtom),
|
||||
(get, set, name: string) => {
|
||||
(_, set, name: string) => {
|
||||
blockSuiteWorkspace.meta.setName(name);
|
||||
set(baseAtom, name);
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export function useBlockSuiteWorkspacePageIsPublic(page: Page) {
|
||||
const baseAtom = atom<boolean>(page.meta.isPublic ?? false);
|
||||
const writableAtom = atom(
|
||||
get => get(baseAtom),
|
||||
(get, set, isPublic: boolean) => {
|
||||
(_, set, isPublic: boolean) => {
|
||||
page.workspace.setPageMeta(page.id, {
|
||||
isPublic,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user