mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-28 05:25:33 +00:00
rename to PageItem
This commit is contained in:
parent
fed4aa58c9
commit
1dadb768c5
2 changed files with 3 additions and 3 deletions
|
|
@ -31,7 +31,7 @@ import { Input } from "../ui/input";
|
|||
import { Textarea } from "../ui/textarea";
|
||||
import { Popover, PopoverContent, PopoverTrigger } from "../ui/popover";
|
||||
|
||||
export const ListItem: React.FC<{ item: StoredContent }> = ({ item }) => {
|
||||
export const PageItem: React.FC<{ item: StoredContent }> = ({ item }) => {
|
||||
const [isDropdownOpen, setIsDropdownOpen] = useState(false);
|
||||
const [isEditDrawerOpen, setIsEditDrawerOpen] = useState(false);
|
||||
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
"use server";
|
||||
import { StoredContent } from "@/server/db/schema";
|
||||
import { AddNewPagePopover, ListItem } from "./ListItem";
|
||||
import { AddNewPagePopover, PageItem } from "./PagesItem";
|
||||
|
||||
export default async function Sidebar() {
|
||||
const pages: StoredContent[] = [
|
||||
|
|
@ -38,7 +38,7 @@ export default async function Sidebar() {
|
|||
<AddNewPagePopover />
|
||||
</h1>
|
||||
{pages.map((item) => (
|
||||
<ListItem key={item.id} item={item} />
|
||||
<PageItem key={item.id} item={item} />
|
||||
))}
|
||||
</div>
|
||||
</aside>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue