Update icons (#10570)

This commit is contained in:
AdRiley 2024-07-16 20:46:38 +01:00 committed by GitHub
parent 0268cbb55b
commit 2d6c86398d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 7 deletions

View File

@ -6,16 +6,15 @@ import type { Icon } from '@/util/iconName'
const blockType = defineModel<BlockType>({ required: true })
const TODO: Icon = 'text'
const blockTypeIcon: Record<keyof typeof blockTypeToBlockName, Icon> = {
paragraph: 'text',
bullet: 'bullet-list',
code: TODO,
h1: TODO,
h2: TODO,
h3: TODO,
code: 'code',
h1: 'header1',
h2: 'header2',
h3: 'header3',
number: 'numbered-list',
quote: TODO,
quote: 'quote',
}
const blockTypesOrdered: BlockType[] = [
'paragraph',

View File

@ -47,7 +47,7 @@ const close = () => (menuOpen.value = false)
/>
<ToggleIcon
:modelValue="code.state.value"
:icon="TODO"
icon="code"
title="Insert Code Block"
@update:modelValue="code.set"
/>