mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-01-03 13:52:06 +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
|
- Alessio Gravili, @AlessioGr, 2023/03/04
|
||||||
- Victor Nanka, @victornanka, 2023/03/09
|
- Victor Nanka, @victornanka, 2023/03/09
|
||||||
- Aditya Sharma, @adityash1, 2023/03/21
|
- 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) {
|
if (!editor || !container || !page) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (
|
if (page.awarenessStore.getFlag('enable_block_hub')) {
|
||||||
page.awarenessStore.getFlag('enable_block_hub') &&
|
|
||||||
props.mode === 'page'
|
|
||||||
) {
|
|
||||||
editor.createBlockHub().then(blockHub => {
|
editor.createBlockHub().then(blockHub => {
|
||||||
if (blockHubRef.current) {
|
if (blockHubRef.current) {
|
||||||
blockHubRef.current.remove();
|
blockHubRef.current.remove();
|
||||||
|
Loading…
Reference in New Issue
Block a user