Skip to content

Commit

Permalink
delete propTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
domschab23 committed May 29, 2024
1 parent ddab8f9 commit 79f0a21
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/RichTextEditor/RichTextEditorMenuBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import type { Editor } from '@tiptap/core';
import './RichTextEditorMenuBar.scss';

import React from 'react';
import * as propTypes from 'prop-types';

import classNames from 'classnames';

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

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

type RichTextEditorMenuBarProps = {
Expand Down Expand Up @@ -110,11 +108,5 @@ function RichTextEditorMenuBar({
);
}

RichTextEditorMenuBar.propTypes = {
availableActions: propTypes.arrayOf(propTypes.oneOf(RichTextEditorAllActionsArray)).isRequired,
editable: propTypes.bool.isRequired,
editor: propTypes.object.isRequired,
};

// eslint-disable-next-line import/no-default-export
export default RichTextEditorMenuBar;

0 comments on commit 79f0a21

Please sign in to comment.