diff --git a/pages/satistics.js b/pages/satistics.js index 66f80dde..b4decfb7 100644 --- a/pages/satistics.js +++ b/pages/satistics.js @@ -14,6 +14,7 @@ import { Checkbox, Form } from '../components/form' import { useRouter } from 'next/router' import Item from '../components/item' import Comment from '../components/comment' +import React from 'react' export const getServerSideProps = getGetServerSideProps(WALLET_HISTORY) @@ -142,6 +143,8 @@ export default function Satistics ({ data: { me, walletHistory: { facts, cursor case 'withdrawal': case 'invoice': return `/${fact.type}s/${fact.factId}` + case 'earn': + return default: return `/items/${fact.factId}` } @@ -200,17 +203,22 @@ export default function Satistics ({ data: { me, walletHistory: { facts, cursor
- {facts.map((f, i) => ( - -