aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDhravya <[email protected]>2024-06-30 19:26:10 -0500
committerDhravya <[email protected]>2024-06-30 19:26:10 -0500
commit33c0d2807523cf346951ebbc12ecdc8acf7036cd (patch)
tree5cd79f027bf61bc1c4f37f50baee2eaf07c65ca7 /apps
parentrevalidate page (diff)
downloadsupermemory-33c0d2807523cf346951ebbc12ecdc8acf7036cd.tar.xz
supermemory-33c0d2807523cf346951ebbc12ecdc8acf7036cd.zip
removed unwanted information from the memories page
Diffstat (limited to 'apps')
-rw-r--r--apps/web/app/(dash)/memories/content.tsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/web/app/(dash)/memories/content.tsx b/apps/web/app/(dash)/memories/content.tsx
index 6b0b31b7..3cc207c0 100644
--- a/apps/web/app/(dash)/memories/content.tsx
+++ b/apps/web/app/(dash)/memories/content.tsx
@@ -126,7 +126,6 @@ function TabComponent({
title: string;
description: string;
}) {
- // TODO: Display the space name and desription which is the number of elemenet in the space
return (
<div className="flex flex-col gap-4 bg-[#161f2a]/30 backdrop-blur-md border-2 border-border w-full rounded-xl p-4 -z-10">
<div className="flex items-center gap-2 text-xs">
@@ -165,10 +164,9 @@ function LinkComponent({
image?: string;
description: string;
}) {
- // TODO: DISPLAY THE ITEM BASED ON `type` being note or page
return (
<Link
- href={url.replace("https://beta.supermemory.ai", "")}
+ href={url.replace("https://beta.supermemory.ai", "").split("#")[0] ?? "/"}
className={`bg-secondary border-2 border-border rounded-xl ${type === "tweet" ? "" : "p-4"} hover:scale-105 transition duration-200`}
>
{type === "page" ? (
@@ -177,7 +175,10 @@ function LinkComponent({
<PaperclipIcon className="w-3 h-3" /> Page
</div>
<div className="text-lg text-[#fff] mt-4 line-clamp-2">{title}</div>
- <div>{url}</div>
+ <div>
+ {url.replace("https://beta.supermemory.ai", "").split("#")[0] ??
+ "/"}
+ </div>
</>
) : type === "note" ? (
<>