Skip to content

Commit

Permalink
test: Add links in nuq+ e2e pages
Browse files Browse the repository at this point in the history
  • Loading branch information
franky47 committed Jan 15, 2024
1 parent 3812dcc commit c61b06d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/e2e/src/app/app/useQueryStates/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use client'

import Link from 'next/link'
import {
parseAsBoolean,
parseAsFloat,
Expand Down Expand Up @@ -39,6 +40,10 @@ const IntegrationPage = () => {
>
Clear
</button>
<nav>
<Link href="?string=Hello&int=42">Link A</Link>
<Link href="?string=World&int=47">Link B</Link>
</nav>
<p id="json">{JSON.stringify(state)}</p>
<p id="string">{state.string}</p>
<p id="int">{state.int}</p>
Expand Down
5 changes: 5 additions & 0 deletions packages/e2e/src/pages/pages/useQueryStates/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Link from 'next/link'
import { queryTypes, useQueryStates } from 'nuqs'
import { HydrationMarker } from '../../../components/hydration-marker'

Expand Down Expand Up @@ -36,6 +37,10 @@ const IntegrationPage = () => {
>
Clear
</button>
<nav>
<Link href="?string=Hello&int=42">Link A</Link>
<Link href="?string=World&int=47">Link B</Link>
</nav>
<p id="json">{JSON.stringify(state)}</p>
<p id="string">{state.string}</p>
<p id="int">{state.int}</p>
Expand Down

0 comments on commit c61b06d

Please sign in to comment.