diff options
| author | Dhravya <[email protected]> | 2024-06-30 19:26:10 -0500 |
|---|---|---|
| committer | Dhravya <[email protected]> | 2024-06-30 19:26:10 -0500 |
| commit | 33c0d2807523cf346951ebbc12ecdc8acf7036cd (patch) | |
| tree | 5cd79f027bf61bc1c4f37f50baee2eaf07c65ca7 | |
| parent | revalidate page (diff) | |
| download | supermemory-33c0d2807523cf346951ebbc12ecdc8acf7036cd.tar.xz supermemory-33c0d2807523cf346951ebbc12ecdc8acf7036cd.zip | |
removed unwanted information from the memories page
| -rw-r--r-- | apps/web/app/(dash)/memories/content.tsx | 9 |
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" ? ( <> |