From daebbf0154a290fb690ed94fca23377e0f739f53 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Wed, 7 Feb 2024 02:48:38 +0000
Subject: [ui] Very first draft of the link grid

---
 web/app/page.tsx | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)

(limited to 'web/app/page.tsx')

diff --git a/web/app/page.tsx b/web/app/page.tsx
index b78fe389..ffc128a5 100644
--- a/web/app/page.tsx
+++ b/web/app/page.tsx
@@ -1,16 +1,8 @@
-"use client";
-
-import { useCallback } from "react";
-import { LoginButton } from "../components/auth/login";
-import { LogoutButton } from "../components/auth/logout";
+import { LoginButton } from "@/components/auth/login";
+import { LogoutButton } from "@/components/auth/logout";
+import Link from "next/link";
 
 export default function Home() {
-  const addUrl = useCallback(async () => {
-    await fetch("/api/v1/links", {
-      method: "POST",
-      body: JSON.stringify({ url: "https://news.ycombinator.com/news" }),
-    });
-  }, []);
   return (
     <main className="flex min-h-screen flex-col items-center justify-between p-24">
       <div>
@@ -20,7 +12,7 @@ export default function Home() {
         <LogoutButton />
         <br />
         <br />
-        <button onClick={addUrl}>Add URL</button>
+        <Link href="/bookmarks">Bookmarks</Link>
       </div>
     </main>
   );
-- 
cgit v1.2.3-70-g09d2

