Skip to content

Commit

Permalink
fixes imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleshike committed Jan 5, 2024
1 parent 6a21906 commit 08bc617
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
9 changes: 0 additions & 9 deletions src/RichTextEditor/RichTextEditor.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,6 @@ export const OneLine = () => (
/>
);

export const TemplateVariables = () => (
<RichTextEditor
id="text-editor"
placeholder="Enter / to view available variables"
templateVariables={['howdy', 'ho']}
onChange={() => null}
/>
);

export const Error = () => (
<RichTextEditor
hasErrors
Expand Down
5 changes: 4 additions & 1 deletion src/RichTextEditor/RichTextEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import Text from '@tiptap/extension-text';

import sanitizeHtml from 'sanitize-html';

import { LoadingSkeleton } from 'src/LoadingSkeleton';
import { LoadingSkeleton } from '../LoadingSkeleton';

import RichTextEditorMenuBar from './RichTextEditorMenuBar';

Expand Down Expand Up @@ -71,6 +71,9 @@ export type RichTextEditorProps = {
availableActions?: typeof RichTextEditorActions[keyof typeof RichTextEditorActions][];
characterLimit?: number;
className?: string;
/**
https://tiptap.dev/docs/editor/guide/custom-extensions
*/
extensions?: (Extension | TipTapNode | Mark)[];
hasErrors?: boolean;
id: string;
Expand Down
2 changes: 1 addition & 1 deletion src/RichTextEditor/RichTextEditorMenuBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import './RichTextEditorMenuBar.scss';

import React from 'react';
import * as propTypes from 'prop-types';
import { IconButton } from '@user-interviews/ui-design-system'

import classNames from 'classnames';

Expand All @@ -16,6 +15,7 @@ import {
faListUl,
faUnlink,
} from '@fortawesome/pro-regular-svg-icons';
import IconButton from '../IconButton';

import { RichTextEditorActions, RichTextEditorAllActionsArray } from './richTextEditorActions';
import { createActionHandlers } from './actionHandlers';
Expand Down

0 comments on commit 08bc617

Please sign in to comment.