diff --git a/.eslintrc.json b/.eslintrc.json index 26977516..38293435 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -13,6 +13,7 @@ "no-redeclare": "off", "@next/next/no-html-link-for-pages": "off", "no-undef": "off", + "react/jsx-no-undef": "off", "no-unused-vars": [ "error", { diff --git a/bun.lockb b/bun.lockb index fc5566d0..f4f09e8a 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/web/app/bookmarks/components/AddLink.tsx b/web/app/bookmarks/components/AddLink.tsx index 54cf9137..fab4db8b 100644 --- a/web/app/bookmarks/components/AddLink.tsx +++ b/web/app/bookmarks/components/AddLink.tsx @@ -1,6 +1,9 @@ "use client"; +import { Button } from "@/components/ui/button"; +import { Input } from "@/components/ui/input"; import APIClient from "@/lib/api"; +import { Plus } from "lucide-react"; import { useRouter } from "next/navigation"; import { useState } from "react"; @@ -11,6 +14,7 @@ export default function AddLink() { const bookmarkLink = async () => { const [_resp, error] = await APIClient.bookmarkLink(link); if (error) { + // TODO: Proper error handling alert(error.message); return; } @@ -18,8 +22,8 @@ export default function AddLink() { }; return ( -
{link.details?.description ?? link.url}
-