style(bookmarks): use file-lines icon instead of book for default bookmarks

This commit is contained in:
Gigi
2025-10-15 14:31:27 +02:00
parent b48397b7a6
commit cb0066aac9

View File

@@ -1,6 +1,6 @@
import React, { useState } from 'react'
import { faNewspaper, faStickyNote, faCirclePlay, faCamera } from '@fortawesome/free-regular-svg-icons'
import { faBook, faGlobe } from '@fortawesome/free-solid-svg-icons'
import { faNewspaper, faStickyNote, faCirclePlay, faCamera, faFileLines } from '@fortawesome/free-regular-svg-icons'
import { faGlobe } from '@fortawesome/free-solid-svg-icons'
import { IconDefinition } from '@fortawesome/fontawesome-svg-core'
import { useEventModel } from 'applesauce-react/hooks'
import { Models } from 'applesauce-core'
@@ -89,7 +89,7 @@ export const BookmarkItem: React.FC<BookmarkItemProps> = ({ bookmark, index, onS
if (!hasUrls) return faStickyNote // Just a text note
if (firstUrlClassification?.type === 'youtube' || firstUrlClassification?.type === 'video') return faCirclePlay
return faBook
return faFileLines
}
const getIconForUrlType = (url: string) => {
@@ -101,7 +101,7 @@ export const BookmarkItem: React.FC<BookmarkItemProps> = ({ bookmark, index, onS
case 'image':
return faCamera
default:
return faBook
return faFileLines
}
}