fix: add icon for code block (#10924)
Fixes #10923 <img width="422" alt="Screenshot 2025-03-16 at 1 44 51 AM" src="https://github.com/user-attachments/assets/e8b638ce-0082-486a-92c0-f362dcf25f98" /> Co-authored-by: Weiko <corentin@twenty.com>
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
import { getDefaultReactSlashMenuItems } from '@blocknote/react';
|
import { getDefaultReactSlashMenuItems } from '@blocknote/react';
|
||||||
import {
|
import {
|
||||||
|
IconCode,
|
||||||
IconComponent,
|
IconComponent,
|
||||||
IconFile,
|
IconFile,
|
||||||
IconH1,
|
IconH1,
|
||||||
@ -27,6 +28,7 @@ const Icons: Record<string, IconComponent> = {
|
|||||||
'Numbered List': IconListNumbers,
|
'Numbered List': IconListNumbers,
|
||||||
'Bullet List': IconList,
|
'Bullet List': IconList,
|
||||||
'Check List': IconListCheck,
|
'Check List': IconListCheck,
|
||||||
|
'Code Block': IconCode,
|
||||||
Paragraph: IconPilcrow,
|
Paragraph: IconPilcrow,
|
||||||
Table: IconTable,
|
Table: IconTable,
|
||||||
Image: IconPhoto,
|
Image: IconPhoto,
|
||||||
|
|||||||
Reference in New Issue
Block a user