Skip to content

Commit 503a2fd

Browse files
committed
Add CheckListIcon
1 parent 39c1ae7 commit 503a2fd

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

apps/front-end/src/components/Icons.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import {
2424
import {
2525
IoImageOutline as ImageOutlineIcon,
2626
IoCheckmark as CheckIcon,
27+
IoCheckboxOutline as CheckListIcon,
2728
} from "react-icons/io5";
2829
import { BsTextParagraph as ParagraphIcon } from "react-icons/bs";
2930
import { MdOutlineClose as CloseIcon } from "react-icons/md";
@@ -54,4 +55,5 @@ export {
5455
TextIcon,
5556
InlineCodeIcon,
5657
CodeBlockIcon,
58+
CheckListIcon,
5759
};

apps/front-end/src/plugins/CommandPickerPlugin/index.tsx

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import {
22
BoldIcon,
3+
CheckListIcon,
34
CodeIcon,
45
HeadingIcon,
6+
InlineCodeIcon,
57
ItalicIcon,
68
ParagraphIcon,
79
QuoteIcon,
810
StrikethroughIcon,
9-
UnderlineIcon,
1011
TextIcon,
11-
InlineCodeIcon,
12+
UnderlineIcon,
1213
} from "@/components/Icons";
1314
import {
1415
INSERT_CHECK_LIST_COMMAND,
@@ -34,6 +35,7 @@ import {
3435
import { INSERT_IMAGE_COMMAND } from "../ImagePlugin";
3536
import useLexicalCommand from "../useLexicalCommand";
3637
import CommandPicker, { CommandPickerItem } from "./CommandPicker";
38+
import { InsertImageCommand } from "./InsertImageDialog";
3739
import {
3840
CLEAR_FORMAT_TEXT_COMMAND,
3941
FORMAT_PARAGRAPH_COMMAND,
@@ -50,7 +52,6 @@ import {
5052
useRemoveCaretCommand,
5153
} from "./commads";
5254
import { $getQueryTextForSearch } from "./utils";
53-
import { InsertImageCommand } from "./InsertImageDialog";
5455

5556
export type ComponentPickerMenuPluginProps = {
5657
/**
@@ -201,8 +202,8 @@ export default function ComponentPickerMenuPlugin({
201202
<CommandPickerItem
202203
onSelect={() => dispatch(INSERT_CHECK_LIST_COMMAND, undefined)}
203204
keywords="list checklist todo"
204-
icon={<OrderedListIcon />}
205-
label="Checklist"
205+
icon={<CheckListIcon />}
206+
label="Check List"
206207
/>
207208

208209
<CommandPickerItem

0 commit comments

Comments
 (0)