diff --git a/app/search/page.tsx b/app/search/page.tsx index 4a7314c..3d0919e 100644 --- a/app/search/page.tsx +++ b/app/search/page.tsx @@ -3,6 +3,16 @@ import { notFound, redirect } from 'next/navigation'; import { getSearchResult, getWalletSwaps } from 'services'; import Result from './_components/Result'; +export async function generateMetadata({ + searchParams, +}: { + searchParams: { query: string }; +}) { + return { + title: `Address ${searchParams.query}`, + }; +} + const Page = async ({ searchParams, }: { diff --git a/app/statistics/page.tsx b/app/statistics/page.tsx index ee1197e..fa1d066 100644 --- a/app/statistics/page.tsx +++ b/app/statistics/page.tsx @@ -5,6 +5,11 @@ import { DEFAULT_STATISTIC_DAYS, } from 'constant'; import StatisticsPageContent from './_components/StatisticsPageContent'; +import { Metadata } from 'next'; + +export const metadata: Metadata = { + title: 'Statistics', +}; export default async function StatisticsPage() { const blockchainsPromise = getBlockchains(); diff --git a/app/swap/[id]/page.tsx b/app/swap/[id]/page.tsx index fb1b078..afa1543 100644 --- a/app/swap/[id]/page.tsx +++ b/app/swap/[id]/page.tsx @@ -5,6 +5,12 @@ import { getTxDetails } from 'services'; import SwapDetailSummary from './_components/SwapDetailSummary'; import SwapSteps from './_components/SwapSteps'; +export async function generateMetadata({ params }: { params: { id: string } }) { + return { + title: `Swap ${params.id}`, + }; +} + const Page = async ({ params }: { params: { id: string } }) => { const details = await getTxDetails(params.id);