Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Darginec05 committed Apr 21, 2024
1 parent 4b48d9a commit 3e74074
Show file tree
Hide file tree
Showing 7 changed files with 696 additions and 26 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ If you find Yoopta-Editor useful and valuable for your projects, I kindly ask yo
- Collabrative mode
- Plugin system
- Optimizations for media components
- Create package @yoopta/hotkeys to manage hotkeys
- Rethink approach for just rendering to increase SEO perfomance
- Continue improving the project. We are listening to you and your requests 💙

Expand Down
5 changes: 0 additions & 5 deletions packages/core/src/components/Block/BlockActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { Transforms } from 'slate';
import { useState } from 'react';
import { useFloating, offset, flip, inline, shift, useTransitionStyles } from '@floating-ui/react';
import { BlockOptions } from '../../UI/BlockOptions/BlockOptions';
import { findPluginBlockBySelectionPath } from '../../utils/findPluginBlockBySelectionPath';

type ActionsProps = {
block: YooptaBlockData;
Expand All @@ -19,10 +18,6 @@ type ActionsProps = {
onChangeActiveBlock: (id: string) => void;
};

function cx(...classNames: (string | undefined)[]) {
return classNames.filter(Boolean).join(' ');
}

const BlockActions = ({ block, editor, dragHandleProps, showActions, onChangeActiveBlock }: ActionsProps) => {
const [isBlockOptionsOpen, setIsBlockOptionsOpen] = useState<boolean>(false);

Expand Down
Loading

0 comments on commit 3e74074

Please sign in to comment.