fix: blockquote icon in slash menu (#13068)
This PR fixes a UI bug where the "Quote" item in the slash command menu was displayed without an icon. The root cause was that the IconBlockquote component, while available in the icons library, was not being exported from the internal twenty-ui package. ## Before / After   ## Changes: - Exported IconBlockquote from TablerIcons.ts in the twenty-ui package. - Updated getSlashMenu.ts in the twenty-front package to import and use the IconBlockquote for the "Quote" menu item.
This commit is contained in:
committed by
GitHub
parent
380e8aff86
commit
ebaec00cce
@ -4,6 +4,7 @@ import { SuggestionItem } from '@/ui/input/editor/components/CustomSlashMenu';
|
|||||||
|
|
||||||
import { BLOCK_SCHEMA } from '../constants/Schema';
|
import { BLOCK_SCHEMA } from '../constants/Schema';
|
||||||
import {
|
import {
|
||||||
|
IconBlockquote,
|
||||||
IconCode,
|
IconCode,
|
||||||
IconComponent,
|
IconComponent,
|
||||||
IconFile,
|
IconFile,
|
||||||
@ -25,6 +26,7 @@ const Icons: Record<string, IconComponent> = {
|
|||||||
'Heading 1': IconH1,
|
'Heading 1': IconH1,
|
||||||
'Heading 2': IconH2,
|
'Heading 2': IconH2,
|
||||||
'Heading 3': IconH3,
|
'Heading 3': IconH3,
|
||||||
|
Quote: IconBlockquote,
|
||||||
'Numbered List': IconListNumbers,
|
'Numbered List': IconListNumbers,
|
||||||
'Bullet List': IconList,
|
'Bullet List': IconList,
|
||||||
'Check List': IconListCheck,
|
'Check List': IconListCheck,
|
||||||
|
|||||||
@ -19,6 +19,7 @@ export {
|
|||||||
IconAt,
|
IconAt,
|
||||||
IconBaselineDensitySmall,
|
IconBaselineDensitySmall,
|
||||||
IconBell,
|
IconBell,
|
||||||
|
IconBlockquote,
|
||||||
IconBolt,
|
IconBolt,
|
||||||
IconBook2,
|
IconBook2,
|
||||||
IconBookmark,
|
IconBookmark,
|
||||||
|
|||||||
@ -81,6 +81,7 @@ export {
|
|||||||
IconAt,
|
IconAt,
|
||||||
IconBaselineDensitySmall,
|
IconBaselineDensitySmall,
|
||||||
IconBell,
|
IconBell,
|
||||||
|
IconBlockquote,
|
||||||
IconBolt,
|
IconBolt,
|
||||||
IconBook2,
|
IconBook2,
|
||||||
IconBookmark,
|
IconBookmark,
|
||||||
|
|||||||
Reference in New Issue
Block a user