aboutsummaryrefslogtreecommitdiff
path: root/apps/web/src/components/Sidebar/AddMemoryDialog.tsx
diff options
context:
space:
mode:
authorDhravya <[email protected]>2024-04-13 11:40:01 -0700
committerDhravya <[email protected]>2024-04-13 11:40:01 -0700
commit6f4792cab8643dacd651c3cb1b069ad7aedd33fb (patch)
tree88f03e31212bbf8b3ebff55f0ca93d2dff4e190f /apps/web/src/components/Sidebar/AddMemoryDialog.tsx
parentadded browser rendering for getting clean page content (diff)
parentfix notes (diff)
downloadsupermemory-6f4792cab8643dacd651c3cb1b069ad7aedd33fb.tar.xz
supermemory-6f4792cab8643dacd651c3cb1b069ad7aedd33fb.zip
resolved conflicts
Diffstat (limited to 'apps/web/src/components/Sidebar/AddMemoryDialog.tsx')
-rw-r--r--apps/web/src/components/Sidebar/AddMemoryDialog.tsx12
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/web/src/components/Sidebar/AddMemoryDialog.tsx b/apps/web/src/components/Sidebar/AddMemoryDialog.tsx
index 3043c972..31628ab7 100644
--- a/apps/web/src/components/Sidebar/AddMemoryDialog.tsx
+++ b/apps/web/src/components/Sidebar/AddMemoryDialog.tsx
@@ -324,12 +324,18 @@ export function MemorySelectedItem({
id,
title,
url,
+ type,
image,
onRemove,
}: StoredContent & { onRemove: () => void }) {
return (
<div className="hover:bg-rgray-4 focus-within-bg-rgray-4 flex w-full items-center justify-start gap-2 rounded-md p-1 px-2 text-sm [&:hover>[data-icon]]:block [&:hover>img]:hidden">
- <img src={image ?? "/icons/logo_without_bg.png"} className="h-5 w-5" />
+ <img
+ src={
+ type === "note" ? "/note.svg" : image ?? "/icons/logo_without_bg.png"
+ }
+ className="h-5 w-5"
+ />
<button
onClick={onRemove}
data-icon
@@ -338,7 +344,9 @@ export function MemorySelectedItem({
<X className="h-5 w-5 scale-90" />
</button>
<span>{title}</span>
- <span className="ml-auto block opacity-50">{cleanUrl(url)}</span>
+ <span className="ml-auto block opacity-50">
+ {type === "note" ? "Note" : cleanUrl(url)}
+ </span>
</div>
);
}