chore: add new-block icon

pull/7213/head
Konstantinos Kaloutas 2022-11-10 13:02:33 +02:00 committed by Tienson Qin
parent 77cce8184e
commit fb283f7bbb
1 changed files with 3 additions and 2 deletions

View File

@ -54,13 +54,14 @@ const LogseqTypeTag = ({
type,
active,
}: {
type: 'B' | 'P' | 'WP' | 'BS' | 'PS'
type: 'B' | 'P' | 'BA' | 'WP' | 'BS' | 'PS'
active?: boolean
}) => {
const nameMapping = {
B: 'block',
P: 'page',
WP: 'whiteboard',
BA: 'new-block',
BS: 'block-search',
PS: 'page-search',
}
@ -455,7 +456,7 @@ export class LogseqPortalShape extends TLBoxShape<LogseqPortalShapeProps> {
},
element: (
<div className="tl-quick-search-option-row">
<LogseqTypeTag active type="B" />
<LogseqTypeTag active type="BA" />
{q.length > 0 ? (
<>
<strong>New whiteboard block:</strong>