Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mcnuttandrew committed Jul 19, 2023
1 parent a72a374 commit 83ff678
Show file tree
Hide file tree
Showing 2 changed files with 271 additions and 31 deletions.
18 changes: 0 additions & 18 deletions packages/prong-editor/src/lib/dock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,6 @@ function Content(props: {
? filterContents(searchTerm, menuContents)
: menuContents;

// todo also support other actions from the dock
// if (menuState === "monocleOpen") {
// return (
// <div className="cm-dock">
// <div className="cm-dock-label">
// Press Escape to dock the menu
// {setDock && (
// <button onClick={() => setDock("switchToDocked")}>
// or click here
// </button>
// )}
// </div>
// </div>
// );
// }
const docked = menuState === "dockOpen";
const monocled = menuState === "monocleOpen";
return (
Expand Down Expand Up @@ -320,9 +305,6 @@ function panel(view: EditorView): Panel {
triggerRerender({
menuState: popState.menuState,
setDock: () => (transitionStateEvent: popoverSMEvent) => {
// const effect = popoverEffectDispatch.of(
// setToDocked ? "switchToMonocle" : "switchToTooltip"
// );
const effect = popoverEffectDispatch.of(transitionStateEvent);
update.view.dispatch({ effects: [effect] });
},
Expand Down
Loading

0 comments on commit 83ff678

Please sign in to comment.