Peng Xiao 3 лет назад
Родитель
Сommit
2df4c120b7

+ 1 - 2
tldraw/apps/tldraw-logseq/src/components/QuickLinks/QuickLinks.tsx

@@ -8,7 +8,6 @@ import { TablerIcon } from '../icons'
 
 const BlockLink = ({ type, id }: { type?: 'P' | 'B'; id: string }) => {
   const {
-    handlers,
     renderers: { Breadcrumb, PageNameLink },
   } = React.useContext(LogseqContext)
 
@@ -16,7 +15,7 @@ const BlockLink = ({ type, id }: { type?: 'P' | 'B'; id: string }) => {
 
   return (
     <>
-      <TablerIcon name={type === 'P' ? 'page' : 'block'} />
+      <TablerIcon name={type === 'P' ? 'link-to-page' : 'link-to-block'} />
       {type === 'P' ? <PageNameLink pageName={id} /> : <Breadcrumb levelLimit={1} blockId={id} />}
     </>
   )

+ 9 - 7
tldraw/apps/tldraw-logseq/src/components/icons/TablerIcon.tsx

@@ -1,20 +1,22 @@
 const extendedIcons = [
   'add-link',
+  'block-search',
+  'block',
+  'connector',
+  'internal-link',
+  'link-to-block',
+  'link-to-page',
   'object-compact',
   'object-expanded',
   'open-as-page',
-  'block',
-  'block-search',
-  'internal-link',
-  'page',
   'page-search',
+  'page',
   'references-hide',
   'references-show',
-  'whiteboard',
-  'whiteboard-element',
   'select-cursor',
   'text',
-  'connector',
+  'whiteboard-element',
+  'whiteboard',
 ]
 
 const cx = (...args: (string | undefined)[]) => args.join(' ')