From d9abf17c7e29c0608cc81c4043c2af534e86bb71 Mon Sep 17 00:00:00 2001 From: Stephen Gordon Date: Sun, 14 Apr 2024 12:03:04 +0100 Subject: [PATCH] sheet should be closed with useeffect --- src/app/transactions/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/transactions/page.tsx b/src/app/transactions/page.tsx index bc58203..ecce985 100644 --- a/src/app/transactions/page.tsx +++ b/src/app/transactions/page.tsx @@ -25,6 +25,7 @@ import { useRouter } from 'next/navigation'; //import { format, parseISO } from 'date-fns'; import { format, parseISO, set, fromUnixTime } from 'date-fns'; +import { setSheet } from '@/GlobalRedux/Features/sheet/sheetSlice'; export default function Page() { //next @@ -65,7 +66,7 @@ export default function Page() { } useEffect(() => { - console.log("transactionState in tx page", transactionState); + dispatch(setSheet(false)) const getData = async () => { try { const recentTransactions = await useGetRecentTransactions(address);