Skip to content

Commit f645911

Browse files
committed
Fixed build
1 parent 6791ae9 commit f645911

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

packages/core/src/extensions/Placeholder/Placeholder.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export const PlaceholderExtension = createExtension(
1616
}: ExtensionOptions<
1717
Pick<BlockNoteEditorOptions<any, any, any>, "placeholders">
1818
>) => {
19-
// TODO defaults?
2019
const placeholders = options.placeholders;
2120
return {
2221
key: "placeholder",

packages/react/src/components/FormattingToolbar/DefaultButtons/FileDeleteButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ export const FileDeleteButton = () => {
6666
<Components.FormattingToolbar.Button
6767
className={"bn-button"}
6868
label={
69-
dict.formatting_toolbar.file_delete.tooltip[state.blockType] ||
69+
dict.formatting_toolbar.file_delete.tooltip[block.type] ||
7070
dict.formatting_toolbar.file_delete.tooltip["file"]
7171
}
7272
mainTooltip={
73-
dict.formatting_toolbar.file_delete.tooltip[state.blockType] ||
73+
dict.formatting_toolbar.file_delete.tooltip[block.type] ||
7474
dict.formatting_toolbar.file_delete.tooltip["file"]
7575
}
7676
icon={<RiDeleteBin7Line />}

packages/react/src/components/FormattingToolbar/DefaultButtons/FileReplaceButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const FileReplaceButton = () => {
7575
className={"bn-popover-content bn-panel-popover"}
7676
variant={"panel-popover"}
7777
>
78-
<FilePanel blockId={state.blockId} />
78+
<FilePanel blockId={block.id} />
7979
</Components.Generic.Popover.Content>
8080
</Components.Generic.Popover.Root>
8181
);

0 commit comments

Comments
 (0)