mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-01-03 14:53:35 +03:00
feat: block-hub in edgeless mode (#1634)
This commit is contained in:
parent
64dac7cc1c
commit
215db27cd6
1
.github/CLA.md
vendored
1
.github/CLA.md
vendored
@ -51,3 +51,4 @@ Example:
|
||||
- Alessio Gravili, @AlessioGr, 2023/03/04
|
||||
- Victor Nanka, @victornanka, 2023/03/09
|
||||
- Aditya Sharma, @adityash1, 2023/03/21
|
||||
- Fangdun Tsai, @fundon, 2023/03/21
|
||||
|
@ -58,10 +58,7 @@ export const BlockSuiteEditor = (props: EditorProps) => {
|
||||
if (!editor || !container || !page) {
|
||||
return;
|
||||
}
|
||||
if (
|
||||
page.awarenessStore.getFlag('enable_block_hub') &&
|
||||
props.mode === 'page'
|
||||
) {
|
||||
if (page.awarenessStore.getFlag('enable_block_hub')) {
|
||||
editor.createBlockHub().then(blockHub => {
|
||||
if (blockHubRef.current) {
|
||||
blockHubRef.current.remove();
|
||||
|
Loading…
Reference in New Issue
Block a user