Skip to content

Commit

Permalink
chore(names): updated names of components and exported from index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
deep-broadlume committed Dec 17, 2024
1 parent c0ec39a commit 793a372
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 84 deletions.

This file was deleted.

17 changes: 0 additions & 17 deletions src/components/wysiwyg-editor/rich-text-editor.stories.tsx

This file was deleted.

48 changes: 0 additions & 48 deletions src/components/wysiwyg-editor/rich-text-editor.tsx

This file was deleted.

17 changes: 17 additions & 0 deletions src/components/wysiwyg-editor/wysiwyg-editor.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Meta, StoryObj } from '@storybook/react';

import { WYSIWYGEditor } from './wysiwyg-editor';

const meta: Meta = {
component: WYSIWYGEditor,
title: 'Components/WYSIWYG Editor',
};

export default meta;
type Story = StoryObj<typeof WYSIWYGEditor>;

export const Demo: Story = {
render: (_) => {
return <WYSIWYGEditor />;
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Placeholder from '@tiptap/extension-placeholder';
// import { NodeViewContent, NodeViewWrapper } from '@tiptap/react';
import { Button } from '@components/button';

const TiptapEditor: React.FC = () => {
const WYSIWYGEditor: React.FC = () => {
const [content, setContent] = useState('<p>Type / to insert blocks...</p>');
const [commandMenu, setCommandMenu] = useState(false);

Expand Down Expand Up @@ -181,4 +181,4 @@ const TiptapEditor: React.FC = () => {
);
};

export { TiptapEditor };
export { WYSIWYGEditor };
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export * from '@components/truncated-text/truncated-text';
export * from '@components/breadcrumb/breadcrumb';
export * from '@components/color-picker-input/color-picker-input';
export * from '@components/drag-n-drop-file-input/drag-n-drop-file-input';
export * from '@components/checkbox-tree-view/checkbox-tree-view';
export * from '@components/wysiwyg-editor/wysiwyg-editor';

// Other stuff
export * from '@src/lib/icons';
Expand Down

0 comments on commit 793a372

Please sign in to comment.