From eb8f304d448fe8ee8f28ca67901fb12fc4656358 Mon Sep 17 00:00:00 2001 From: Ignacio Date: Wed, 6 Mar 2024 17:30:41 +0800 Subject: [PATCH] feat: use app router title --- src/app/page.tsx | 6 ++++++ src/app/validator/page.tsx | 5 +++++ src/features/core/components/base-wrapper.tsx | 4 ---- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index d7b23f4..0c665a8 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,5 +1,11 @@ +import type { Metadata } from "next"; + import StakingPage from "@/features/staking/components/main-page"; +export const metadata: Metadata = { + title: "XION Staking", +}; + export default function Page() { return ; } diff --git a/src/app/validator/page.tsx b/src/app/validator/page.tsx index 3234da5..20aaf47 100644 --- a/src/app/validator/page.tsx +++ b/src/app/validator/page.tsx @@ -1,7 +1,12 @@ +import type { Metadata } from "next"; import { Suspense } from "react"; import ValidatorPage from "@/features/staking/components/validator-page"; +export const metadata: Metadata = { + title: "XION Validator Details", +}; + export default function Page() { return ( diff --git a/src/features/core/components/base-wrapper.tsx b/src/features/core/components/base-wrapper.tsx index ac372e0..bcdaaa2 100644 --- a/src/features/core/components/base-wrapper.tsx +++ b/src/features/core/components/base-wrapper.tsx @@ -1,7 +1,6 @@ "use client"; import { Abstraxion, useModal } from "@burnt-labs/abstraxion"; -import Head from "next/head"; import Link from "next/link"; import { basePath } from "@/features/staking/lib/core/constants"; @@ -17,9 +16,6 @@ export default function RootLayout({ return (
- - XION Staking -