fix #1132 broken satistics links
This commit is contained in:
parent
be20500c06
commit
54bbb0cc52
|
@ -186,7 +186,7 @@ export function MeDropdown ({ me, dropNavKey }) {
|
|||
<Link href='/wallet' passHref legacyBehavior>
|
||||
<Dropdown.Item eventKey='wallet'>wallet</Dropdown.Item>
|
||||
</Link>
|
||||
<Link href='/satistics/history?inc=invoice,withdrawal,stacked,spent' passHref legacyBehavior>
|
||||
<Link href='/satistics?inc=invoice,withdrawal,stacked,spent' passHref legacyBehavior>
|
||||
<Dropdown.Item eventKey='satistics'>satistics</Dropdown.Item>
|
||||
</Link>
|
||||
<Dropdown.Divider />
|
||||
|
|
|
@ -64,7 +64,7 @@ export default function OffCanvas ({ me, dropNavKey }) {
|
|||
<Link href='/wallet' passHref legacyBehavior>
|
||||
<Dropdown.Item eventKey='wallet'>wallet</Dropdown.Item>
|
||||
</Link>
|
||||
<Link href='/satistics/history/?inc=invoice,withdrawal,stacked,spent' passHref legacyBehavior>
|
||||
<Link href='/satistics?inc=invoice,withdrawal,stacked,spent' passHref legacyBehavior>
|
||||
<Dropdown.Item eventKey='satistics'>satistics</Dropdown.Item>
|
||||
</Link>
|
||||
<Dropdown.Divider />
|
||||
|
|
|
@ -7,7 +7,7 @@ import PageLoading from '@/components/page-loading'
|
|||
import dynamic from 'next/dynamic'
|
||||
import { numWithUnits } from '@/lib/format'
|
||||
import { UsageHeader } from '@/components/usage-header'
|
||||
import { SatisticsHeader } from '../history'
|
||||
import { SatisticsHeader } from '..'
|
||||
import { WhenComposedChartSkeleton, WhenAreaChartSkeleton } from '@/components/charts-skeletons'
|
||||
import OverlayTrigger from 'react-bootstrap/OverlayTrigger'
|
||||
import Tooltip from 'react-bootstrap/Tooltip'
|
||||
|
|
|
@ -177,7 +177,7 @@ export function SatisticsHeader () {
|
|||
activeKey={activeKey}
|
||||
>
|
||||
<Nav.Item>
|
||||
<Link href='/satistics/history?inc=invoice,withdrawal,stacked,spent' passHref legacyBehavior>
|
||||
<Link href='/satistics?inc=invoice,withdrawal,stacked,spent' passHref legacyBehavior>
|
||||
<Nav.Link eventKey='history'>history</Nav.Link>
|
||||
</Link>
|
||||
</Nav.Item>
|
||||
|
@ -207,7 +207,7 @@ export default function Satistics ({ ssrData }) {
|
|||
}
|
||||
|
||||
const incstr = [...inc].join(',')
|
||||
router.push(`/satistics/history?inc=${incstr}`)
|
||||
router.push(`/satistics?inc=${incstr}`)
|
||||
}
|
||||
|
||||
function included (filter) {
|
Loading…
Reference in New Issue