Simplify recursive block
This commit is contained in:
parent
6074ccceff
commit
a613e57615
|
@ -1,9 +1,7 @@
|
||||||
import { cueBlock } from "./cueBlock";
|
import { BlocksConfig, generateBlocks } from "../../../utils/recursiveBlocks";
|
||||||
|
import { quoteBlock } from "./quoteBlock";
|
||||||
import { textBlock } from "./textBlock";
|
import { textBlock } from "./textBlock";
|
||||||
import { transcriptBlock } from "./transcriptBlock";
|
import { transcriptBlock } from "./transcriptBlock";
|
||||||
import { lineBlock } from "./lineBlock";
|
|
||||||
import { quoteBlock } from "./quoteBlock";
|
|
||||||
import { BlocksConfig, generateBlocks } from "../../../utils/recursiveBlocks";
|
|
||||||
|
|
||||||
const enum BlockName {
|
const enum BlockName {
|
||||||
Text = "Text",
|
Text = "Text",
|
||||||
|
@ -11,8 +9,6 @@ const enum BlockName {
|
||||||
Tabs = "Tabs",
|
Tabs = "Tabs",
|
||||||
Tab = "Tab",
|
Tab = "Tab",
|
||||||
Transcript = "Transcript",
|
Transcript = "Transcript",
|
||||||
Line = "Line",
|
|
||||||
Cue = "Cue",
|
|
||||||
Quote = "Quote",
|
Quote = "Quote",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,14 +72,6 @@ const blocksConfig: BlocksConfig<BlockName> = {
|
||||||
root: true,
|
root: true,
|
||||||
block: transcriptBlock,
|
block: transcriptBlock,
|
||||||
},
|
},
|
||||||
Cue: {
|
|
||||||
root: false,
|
|
||||||
block: cueBlock,
|
|
||||||
},
|
|
||||||
Line: {
|
|
||||||
root: false,
|
|
||||||
block: lineBlock,
|
|
||||||
},
|
|
||||||
Quote: {
|
Quote: {
|
||||||
root: true,
|
root: true,
|
||||||
block: quoteBlock,
|
block: quoteBlock,
|
||||||
|
|
Loading…
Reference in New Issue