File tree 2 files changed +8
-5
lines changed
plugins/CommandPickerPlugin
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import {
24
24
import {
25
25
IoImageOutline as ImageOutlineIcon ,
26
26
IoCheckmark as CheckIcon ,
27
+ IoCheckboxOutline as CheckListIcon ,
27
28
} from "react-icons/io5" ;
28
29
import { BsTextParagraph as ParagraphIcon } from "react-icons/bs" ;
29
30
import { MdOutlineClose as CloseIcon } from "react-icons/md" ;
@@ -54,4 +55,5 @@ export {
54
55
TextIcon ,
55
56
InlineCodeIcon ,
56
57
CodeBlockIcon ,
58
+ CheckListIcon ,
57
59
} ;
Original file line number Diff line number Diff line change 1
1
import {
2
2
BoldIcon ,
3
+ CheckListIcon ,
3
4
CodeIcon ,
4
5
HeadingIcon ,
6
+ InlineCodeIcon ,
5
7
ItalicIcon ,
6
8
ParagraphIcon ,
7
9
QuoteIcon ,
8
10
StrikethroughIcon ,
9
- UnderlineIcon ,
10
11
TextIcon ,
11
- InlineCodeIcon ,
12
+ UnderlineIcon ,
12
13
} from "@/components/Icons" ;
13
14
import {
14
15
INSERT_CHECK_LIST_COMMAND ,
@@ -34,6 +35,7 @@ import {
34
35
import { INSERT_IMAGE_COMMAND } from "../ImagePlugin" ;
35
36
import useLexicalCommand from "../useLexicalCommand" ;
36
37
import CommandPicker , { CommandPickerItem } from "./CommandPicker" ;
38
+ import { InsertImageCommand } from "./InsertImageDialog" ;
37
39
import {
38
40
CLEAR_FORMAT_TEXT_COMMAND ,
39
41
FORMAT_PARAGRAPH_COMMAND ,
@@ -50,7 +52,6 @@ import {
50
52
useRemoveCaretCommand ,
51
53
} from "./commads" ;
52
54
import { $getQueryTextForSearch } from "./utils" ;
53
- import { InsertImageCommand } from "./InsertImageDialog" ;
54
55
55
56
export type ComponentPickerMenuPluginProps = {
56
57
/**
@@ -201,8 +202,8 @@ export default function ComponentPickerMenuPlugin({
201
202
< CommandPickerItem
202
203
onSelect = { ( ) => dispatch ( INSERT_CHECK_LIST_COMMAND , undefined ) }
203
204
keywords = "list checklist todo"
204
- icon = { < OrderedListIcon /> }
205
- label = "Checklist "
205
+ icon = { < CheckListIcon /> }
206
+ label = "Check List "
206
207
/>
207
208
208
209
< CommandPickerItem
You can’t perform that action at this time.
0 commit comments