refactor: Remove metadata export from sign-in page

This commit is contained in:
wood chen 2025-02-21 20:10:53 +08:00
parent 04d9ac38dc
commit 03107936ad
2 changed files with 6 additions and 6 deletions

View File

@ -0,0 +1,6 @@
import { Metadata } from "next";
export const metadata: Metadata = {
title: "Login",
description: "Login to your account",
};

View File

@ -1,7 +1,6 @@
"use client";
import { useEffect } from "react";
import { Metadata } from "next";
import Link from "next/link";
import { ChevronLeft, MessageCircleCode } from "lucide-react";
@ -13,11 +12,6 @@ interface Props {
searchParams: { state?: string };
}
export const metadata: Metadata = {
title: "Login",
description: "Login to your account",
};
export default function LoginPage({ searchParams }: Props) {
useEffect(() => {
// 如果有 state 参数,保存到 cookie