chore: add missing headings to the rich text editor (#5135)

This commit is contained in:
Aaryan Khandelwal 2024-07-22 15:17:24 +05:30 committed by GitHub
parent 8771c80c9b
commit 2ee6cd20d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 227 additions and 187 deletions

View file

@ -3,7 +3,7 @@
import React, { useEffect, useState, useCallback } from "react";
import { Check, ChevronDown } from "lucide-react";
// editor
import { EditorMenuItemNames, EditorRefApi } from "@plane/editor";
import { EditorRefApi, TEditorCommands } from "@plane/editor";
// ui
import { CustomMenu, Tooltip } from "@plane/ui";
// constants
@ -18,7 +18,7 @@ type Props = {
type ToolbarButtonProps = {
item: ToolbarMenuItem;
isActive: boolean;
executeCommand: (commandName: EditorMenuItemNames) => void;
executeCommand: (commandKey: TEditorCommands) => void;
};
const ToolbarButton: React.FC<ToolbarButtonProps> = React.memo((props) => {