Skip to content

Commit

Permalink
fix: typechecke error
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentdchan committed Dec 2, 2023
1 parent 85cafe9 commit 6d868a9
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions packages/blocky-example/app/loro/loroExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import {
ImageBlockPlugin,
useBlockyController,
DefaultToolbarMenu,
DefaultSpannerMenu,
makeReactSpanner,
type SpannerRenderProps,
makeDefaultReactSpanner,
} from "blocky-react";
import { BlockyDocument, EditorController, IPlugin } from "blocky-core";
import ImagePlaceholder from "@pkg/components/imagePlaceholder";
Expand Down Expand Up @@ -37,14 +35,7 @@ function makeController(
title: doc ? undefined : "Loro",
document: doc,
plugins,
spannerFactory: makeReactSpanner(
({ editorController, focusedNode }: SpannerRenderProps) => (
<DefaultSpannerMenu
editorController={editorController}
focusedNode={focusedNode}
/>
)
),
spannerFactory: makeDefaultReactSpanner(),
/**
* Tell the editor how to render the banner.
* We use a toolbar written in Preact here.
Expand Down

1 comment on commit 6d868a9

@vercel
Copy link

@vercel vercel bot commented on 6d868a9 Dec 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.