linking works

This commit is contained in:
2026-06-28 11:14:23 -05:00
parent c04738f9c4
commit 8134ec117f
5 changed files with 86 additions and 52 deletions
+6 -1
View File
@@ -11,6 +11,7 @@ import {
} from "@/components/ui/tooltip";
import DeleteDialog from "./delete-dialog";
import { useState } from "react";
import { useRouter } from "next/navigation";
type Props = {
id: string;
@@ -22,6 +23,8 @@ export default function ActionMenu({ id }: Props) {
const [open, setOpen] = useState(false);
const router = useRouter();
return (
<>
<TooltipProvider delayDuration={150}>
@@ -69,7 +72,9 @@ export default function ActionMenu({ id }: Props) {
<button
className={buttonClass}
onClick={() => {
// Blog
let link = `/write/new?app=${id}`;
console.log(link);
router.push(link);
}}
>
<Pencil className="h-5 w-5" />