fix: replace noop function (#2744)

This commit is contained in:
Himself65
2023-06-09 16:00:44 +08:00
committed by GitHub
parent 01ae21e1fa
commit af6f431c15
12 changed files with 37 additions and 12 deletions
@@ -1,4 +1,5 @@
import type { PluginBlockSuiteAdapter } from '@toeverything/plugin-infra/type';
import { noop } from 'foxact/noop';
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
@@ -23,7 +24,7 @@ export default {
div.remove();
};
} else {
return () => {};
return noop;
}
},
} satisfies Partial<PluginBlockSuiteAdapter>;