Skip to content

Commit

Permalink
fix: add metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
RyukTheCoder committed Oct 6, 2024
1 parent 2ddb662 commit fb1141f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/search/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}: {
Expand Down
5 changes: 5 additions & 0 deletions app/statistics/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
6 changes: 6 additions & 0 deletions app/swap/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit fb1141f

Please sign in to comment.