diff --git a/frontend/app/(app)/code/[id]/page.tsx b/frontend/app/(app)/code/[id]/page.tsx index b4aa09d..27bf89e 100644 --- a/frontend/app/(app)/code/[id]/page.tsx +++ b/frontend/app/(app)/code/[id]/page.tsx @@ -94,7 +94,7 @@ export default async function CodePage({ params }: { params: { id: string } }) {
diff --git a/frontend/components/dashboard/index.tsx b/frontend/components/dashboard/index.tsx index ecd3837..8f693be 100644 --- a/frontend/components/dashboard/index.tsx +++ b/frontend/components/dashboard/index.tsx @@ -25,6 +25,7 @@ export default function Dashboard({ type: "react" | "node" author: string sharedOn: Date + authorAvatarUrl?: string }[] }) { const [screen, setScreen] = useState("projects") @@ -121,7 +122,12 @@ export default function Dashboard({ ) : null} ) : screen === "shared" ? ( - + ({ + ...item, + authorAvatarUrl: item.authorAvatarUrl || "", + }))} + /> ) : screen === "settings" ? null : null}
diff --git a/frontend/components/dashboard/shared.tsx b/frontend/components/dashboard/shared.tsx index 262d985..85ce3d2 100644 --- a/frontend/components/dashboard/shared.tsx +++ b/frontend/components/dashboard/shared.tsx @@ -11,6 +11,7 @@ import Image from "next/image" import Link from "next/link" import Avatar from "../ui/avatar" import Button from "../ui/customButton" +import { projectTemplates } from "@/lib/data" export default function DashboardSharedWithMe({ shared, @@ -18,7 +19,7 @@ export default function DashboardSharedWithMe({ shared: { id: string name: string - type: "react" | "node" + type: string author: string authorAvatarUrl: string sharedOn: Date @@ -46,9 +47,7 @@ export default function DashboardSharedWithMe({ p.id === sandbox.type)?.icon ?? "/project-icons/node.svg" } width={20} height={20} diff --git a/frontend/lib/data/index.ts b/frontend/lib/data/index.ts index 3877c03..4720d03 100644 --- a/frontend/lib/data/index.ts +++ b/frontend/lib/data/index.ts @@ -16,7 +16,7 @@ export const projectTemplates: { id: "vanillajs", name: "HTML/JS", icon: "/project-icons/more.svg", - description: "More coming soon, feel free to contribute on GitHub", + description: "A simple HTML/JS project for building web apps", disabled: false, }, {