mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-09 03:18:04 +00:00
added comments in memories page
This commit is contained in:
parent
3dfdb83f92
commit
4fda1fa0f2
2 changed files with 10 additions and 1 deletions
|
|
@ -75,6 +75,11 @@ function Page() {
|
|||
content={(item.data as Content).content}
|
||||
title={(item.data as Content).title ?? "Untitled"}
|
||||
url={(item.data as Content).url}
|
||||
image={
|
||||
(item.data as Content).ogImage ??
|
||||
(item.data as Content).image ??
|
||||
"/placeholder-image.svg" // TODO: add this placeholder
|
||||
}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
@ -102,6 +107,7 @@ 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 items-center my-6">
|
||||
<div>
|
||||
|
|
@ -125,12 +131,15 @@ function LinkComponent({
|
|||
content,
|
||||
title,
|
||||
url,
|
||||
image,
|
||||
}: {
|
||||
type: string;
|
||||
content: string;
|
||||
title: string;
|
||||
url: string;
|
||||
image?: string;
|
||||
}) {
|
||||
// TODO: DISPLAY THE ITEM BASED ON `type` being note or page
|
||||
return (
|
||||
<div className="w-full">
|
||||
<div className="text-lg text-[#fff]">{title}</div>
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ export const createSpace = async (
|
|||
try {
|
||||
const resp = await db
|
||||
.insert(space)
|
||||
.values({ name: input, user: data.user.id });
|
||||
.values({ name: input, user: data.user.id, createdAt: new Date() });
|
||||
|
||||
revalidatePath("/home");
|
||||
return { success: true, data: resp.meta.last_row_id };
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue