Skip to content

Commit

Permalink
fix #1132 broken satistics links
Browse files Browse the repository at this point in the history
  • Loading branch information
huumn committed Apr 30, 2024
1 parent be20500 commit 54bbb0c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/nav/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down
2 changes: 1 addition & 1 deletion components/nav/mobile/offcanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down
2 changes: 1 addition & 1 deletion pages/satistics/graphs/[when].js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions pages/satistics/history.js → pages/satistics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 54bbb0c

Please sign in to comment.