fix #1132 broken satistics links

This commit is contained in:
keyan 2024-04-30 17:52:34 -05:00
parent be20500c06
commit 54bbb0cc52
4 changed files with 5 additions and 5 deletions

View File

@ -186,7 +186,7 @@ export function MeDropdown ({ me, dropNavKey }) {
<Link href='/wallet' passHref legacyBehavior> <Link href='/wallet' passHref legacyBehavior>
<Dropdown.Item eventKey='wallet'>wallet</Dropdown.Item> <Dropdown.Item eventKey='wallet'>wallet</Dropdown.Item>
</Link> </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> <Dropdown.Item eventKey='satistics'>satistics</Dropdown.Item>
</Link> </Link>
<Dropdown.Divider /> <Dropdown.Divider />

View File

@ -64,7 +64,7 @@ export default function OffCanvas ({ me, dropNavKey }) {
<Link href='/wallet' passHref legacyBehavior> <Link href='/wallet' passHref legacyBehavior>
<Dropdown.Item eventKey='wallet'>wallet</Dropdown.Item> <Dropdown.Item eventKey='wallet'>wallet</Dropdown.Item>
</Link> </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> <Dropdown.Item eventKey='satistics'>satistics</Dropdown.Item>
</Link> </Link>
<Dropdown.Divider /> <Dropdown.Divider />

View File

@ -7,7 +7,7 @@ import PageLoading from '@/components/page-loading'
import dynamic from 'next/dynamic' import dynamic from 'next/dynamic'
import { numWithUnits } from '@/lib/format' import { numWithUnits } from '@/lib/format'
import { UsageHeader } from '@/components/usage-header' import { UsageHeader } from '@/components/usage-header'
import { SatisticsHeader } from '../history' import { SatisticsHeader } from '..'
import { WhenComposedChartSkeleton, WhenAreaChartSkeleton } from '@/components/charts-skeletons' import { WhenComposedChartSkeleton, WhenAreaChartSkeleton } from '@/components/charts-skeletons'
import OverlayTrigger from 'react-bootstrap/OverlayTrigger' import OverlayTrigger from 'react-bootstrap/OverlayTrigger'
import Tooltip from 'react-bootstrap/Tooltip' import Tooltip from 'react-bootstrap/Tooltip'

View File

@ -177,7 +177,7 @@ export function SatisticsHeader () {
activeKey={activeKey} activeKey={activeKey}
> >
<Nav.Item> <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> <Nav.Link eventKey='history'>history</Nav.Link>
</Link> </Link>
</Nav.Item> </Nav.Item>
@ -207,7 +207,7 @@ export default function Satistics ({ ssrData }) {
} }
const incstr = [...inc].join(',') const incstr = [...inc].join(',')
router.push(`/satistics/history?inc=${incstr}`) router.push(`/satistics?inc=${incstr}`)
} }
function included (filter) { function included (filter) {