Add smooth navigation from homepage
diff --git a/src/app/routes/index.tsx b/src/app/routes/index.tsx
index 34f42b5..3254fc4 100644
--- a/src/app/routes/index.tsx
+++ b/src/app/routes/index.tsx
@@ -1,9 +1,10 @@
import { LoaderFunction } from "@remix-run/cloudflare";
+import { useNavigate } from "@remix-run/react";
import { Clickable, Icon } from "shamrock-ux";
import tools from "../tools";
export default function Index() {
-
+ const navigate = useNavigate();
return (
<div className="w-full max-w-md mx-auto my-24 space-y-8">
<div className="space-y-4 text-center">
@@ -23,7 +24,11 @@
<div className="space-y-1">
{group.items.map(tool => (
<div key={tool.id}>
- <Clickable href={`/${tool.id}`} className="w-full">
+ <Clickable href={`/${tool.id}`} onClick={(e) => {
+ if (tool.id === "ua") return;
+ e.preventDefault();
+ navigate("/" + tool.id);
+ }} className="w-full">
<div className="hover:bg-ui-10 rounded-lg p-2 text-left">
<div className="flex flex-row items-center font-medium text-type-20 space-x-1">
<Icon>{tool.icon}</Icon>