diff --git a/src/app/demos/batching/page.tsx b/src/app/demos/batching/page.tsx
index 4a3f830c..c8f6b88e 100644
--- a/src/app/demos/batching/page.tsx
+++ b/src/app/demos/batching/page.tsx
@@ -1,6 +1,5 @@
'use client'
-import Link from 'next/link'
import { useQueryState } from '../../../../dist'
import { parseAsFloat } from '../../../lib'
@@ -14,8 +13,7 @@ export default function BuilderPatternDemoPage() {
const lngStr = lng.toString().split('.')
return (
-
- ⬅️ Home
+ <>
Batching
+ >
)
}
diff --git a/src/app/demos/builder-pattern/page.tsx b/src/app/demos/builder-pattern/page.tsx
index 9f2a8776..3ecbde61 100644
--- a/src/app/demos/builder-pattern/page.tsx
+++ b/src/app/demos/builder-pattern/page.tsx
@@ -1,6 +1,5 @@
'use client'
-import Link from 'next/link'
import { parseAsInteger, useQueryState } from '../../../../dist'
export default function BuilderPatternDemoPage() {
@@ -16,8 +15,7 @@ export default function BuilderPatternDemoPage() {
)
return (
-
- ⬅️ Home
+ <>
Builder pattern
@@ -29,6 +27,6 @@ export default function BuilderPatternDemoPage() {
enabled.
-
+ >
)
}
diff --git a/src/app/demos/hex-colors/page.tsx b/src/app/demos/hex-colors/page.tsx
index 0be2b218..600c232e 100644
--- a/src/app/demos/hex-colors/page.tsx
+++ b/src/app/demos/hex-colors/page.tsx
@@ -34,6 +34,7 @@ export default function HexColorsDemo() {
const asHex = '#' + hexColorSchema.serialize(color)
return (
<>
+ Hex colors
diff --git a/src/app/demos/layout.tsx b/src/app/demos/layout.tsx
new file mode 100644
index 00000000..e2b3a9ff
--- /dev/null
+++ b/src/app/demos/layout.tsx
@@ -0,0 +1,18 @@
+import Link from 'next/link'
+
+export const metadata = {
+ title: 'next-usequerystate demos'
+}
+
+export default function DemoLayout({
+ children
+}: {
+ children: React.ReactNode
+}) {
+ return (
+
+ ⬅️ Home
+ {children}
+
+ )
+}
diff --git a/src/app/demos/server-side-parsing/page.tsx b/src/app/demos/server-side-parsing/page.tsx
index 4f4f7113..b73a5a3e 100644
--- a/src/app/demos/server-side-parsing/page.tsx
+++ b/src/app/demos/server-side-parsing/page.tsx
@@ -13,6 +13,7 @@ export default function ServerSideParsingDemo({ searchParams }: PageProps) {
console.log('Server side counter: %d', counter)
return (
<>
+
Server-side parsing
Server rendered counter: {counter}
diff --git a/src/app/demos/subscribeToQueryUpdates/page.tsx b/src/app/demos/subscribeToQueryUpdates/page.tsx
index fab08d86..fc6f215d 100644
--- a/src/app/demos/subscribeToQueryUpdates/page.tsx
+++ b/src/app/demos/subscribeToQueryUpdates/page.tsx
@@ -1,6 +1,5 @@
'use client'
-import Link from 'next/link'
import React from 'react'
import {
parseAsInteger,
@@ -22,9 +21,8 @@ export default function BuilderPatternDemoPage() {
}, [])
return (
-
- ⬅️ Home
- subscribeToQueryUpdates
+ <>
+ Subscribing to query updates
@@ -32,6 +30,6 @@ export default function BuilderPatternDemoPage() {
Check the console
-
+ >
)
}