Skip to content

Commit

Permalink
sheet should be closed with useeffect
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen-Gordon committed Apr 14, 2024
1 parent 2db1ab7 commit d9abf17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/transactions/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit d9abf17

Please sign in to comment.