chore: fix super icons

This commit is contained in:
Aman Harwara
2023-08-02 01:20:14 +05:30
parent 73609ca7e3
commit a059c2e7e9
13 changed files with 16 additions and 12 deletions

View File

@@ -29,7 +29,7 @@ export function BlockPickerMenuItem({
onMouseEnter={onMouseEnter}
onClick={onClick}
>
<Icon type={option.iconName} className="mt-1.5 h-5 w-5" />
<Icon type={option.iconName} className="h-5 w-5" />
<div className="text-editor">{option.title}</div>
</li>
)

View File

@@ -1,11 +1,11 @@
import { LexicalEditor } from 'lexical'
import { INSERT_COLLAPSIBLE_COMMAND } from '../../Plugins/CollapsiblePlugin'
import { LexicalIconName } from '@/Components/Icon/LexicalIcons'
import { IconType } from '@standardnotes/snjs'
export function GetCollapsibleBlock(editor: LexicalEditor) {
return {
name: 'Collapsible',
iconName: 'caret-right-fill' as LexicalIconName,
iconName: 'caret-right' as IconType,
keywords: ['collapse', 'collapsible', 'toggle'],
onSelect: () => editor.dispatchCommand(INSERT_COLLAPSIBLE_COMMAND, undefined),
}

View File

@@ -1,7 +1,7 @@
export function GetRemoteImageBlock(onSelect: () => void) {
return {
name: 'Image from URL',
iconName: 'file-image',
iconName: 'image',
keywords: ['image', 'url'],
onSelect,
}