diff --git a/packages/examples/dnode-dapp/src/pages/pushscan/index.tsx b/packages/examples/dnode-dapp/src/pages/pushscan/index.tsx index 61f912eab..d849e1d83 100644 --- a/packages/examples/dnode-dapp/src/pages/pushscan/index.tsx +++ b/packages/examples/dnode-dapp/src/pages/pushscan/index.tsx @@ -5,25 +5,13 @@ import SearchBar from '../../components/SearchBar'; import { useRouter } from 'next/router'; import Link from 'next/link'; import { getRecentTransactionAccounts } from '../../utils/push'; -import { getCheckSumAddress } from '../../utils'; +import { formatDate, getCheckSumAddress } from '../../utils'; export default function Explorer() { const [page, setPage] = useState(1); const [latestNotifications, setLatestNotifications] = useState< - { address: string }[] - >([ - // generate 10 dummy data - { address: '0x5ac9E6205eACA2bBbA6eF716FD9AabD76326EEee' }, - { address: '0x1234567890123456789012345678901234567891' }, - { address: '0x1234567890123456789012345678901234567892' }, - { address: '0x1234567890123456789012345678901234567893' }, - { address: '0x1234567890123456789012345678901234567894' }, - { address: '0x1234567890123456789012345678901234567895' }, - { address: '0x1234567890123456789012345678901234567896' }, - { address: '0x1234567890123456789012345678901234567897' }, - { address: '0x1234567890123456789012345678901234567898' }, - { address: '0x1234567890123456789012345678901234567899' }, - ]); + { nsId: string; last_usage: string }[] + >([]); const [total, setTotal] = useState(20); const size = 10; // Hardcoded in api @@ -41,8 +29,7 @@ export default function Explorer() { // Fetch initial stats and latest blocks const fetchData = async () => { const recipients = await getRecentTransactionAccounts(); - console.log(recipients); - // setLatestNotifications(recipients); + setLatestNotifications(recipients); }; // Polling function @@ -68,24 +55,23 @@ export default function Explorer() {