From 07f772ebb0b8365f9af37a21809b63aa994d025d Mon Sep 17 00:00:00 2001 From: "ildar.timerbaev" Date: Mon, 2 Dec 2024 10:06:25 +0300 Subject: [PATCH] Added redirect to replied wave page --- src/app/waves/_components/waves-fast-reply-dialog.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/app/waves/_components/waves-fast-reply-dialog.tsx b/src/app/waves/_components/waves-fast-reply-dialog.tsx index c5ad0a058..31659d20b 100644 --- a/src/app/waves/_components/waves-fast-reply-dialog.tsx +++ b/src/app/waves/_components/waves-fast-reply-dialog.tsx @@ -4,6 +4,7 @@ import { WaveEntry } from "@/entities"; import { WaveForm } from "@/features/waves"; import { WavesListItem } from "@/app/waves/_components/waves-list-item"; import { AnimatePresence } from "framer-motion"; +import { useRouter } from "next/navigation"; interface Props { show: boolean; @@ -12,6 +13,8 @@ interface Props { } export function WavesFastReplyDialog({ show, onHide, entry }: Props) { + const router = useRouter(); + return ( @@ -23,7 +26,11 @@ export function WavesFastReplyDialog({ show, onHide, entry }: Props) { {entry && } - + router.push(`/waves/${entry?.author}/${entry?.permlink}`)} + /> ); }