Skip to content

Commit ec26e4d

Browse files
committed
Removed duplicate code
1 parent d77eca5 commit ec26e4d

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

packages/react/src/blocks/ToggleBlockContent/ToggleBlockContent.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BlockConfig, defaultProps, PropSchema } from "@blocknote/core";
1+
import { toggleBlockConfig } from "@blocknote/core";
22
import { useState } from "react";
33

44
import {
@@ -7,16 +7,6 @@ import {
77
} from "../../schema/ReactBlockSpec.js";
88
import { useEditorChange } from "../../hooks/useEditorChange.js";
99

10-
export const togglePropSchema = {
11-
...defaultProps,
12-
} satisfies PropSchema;
13-
14-
export const toggleBlockConfig = {
15-
type: "toggle" as const,
16-
propSchema: togglePropSchema,
17-
content: "inline",
18-
} satisfies BlockConfig;
19-
2010
export const Toggle = (
2111
props: ReactCustomBlockRenderProps<typeof toggleBlockConfig, any, any>,
2212
) => {

0 commit comments

Comments
 (0)