refactor: migrate img tags to next/image and fix hook usage
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
* - "Other Sign-in Options" 链接打开底部弹层
|
||||
* - 弹层 Email 按钮 → 触发 `onSwitchToEmail`(父级派发 `AuthPanelModeChanged`)
|
||||
*/
|
||||
import Image from "next/image";
|
||||
import { useState } from "react";
|
||||
|
||||
import { AuthPlatform } from "@/lib/auth/nextauth";
|
||||
@@ -56,10 +57,13 @@ export function AuthFacebookPanel({ onSwitchToEmail }: AuthFacebookPanelProps) {
|
||||
return (
|
||||
<div className={styles.panel}>
|
||||
<div className={styles.spacer} />
|
||||
<img
|
||||
<Image
|
||||
src="/images/auth/ic-logo-login.png"
|
||||
alt="Cozsweet"
|
||||
width={120}
|
||||
height={120}
|
||||
className={styles.logo}
|
||||
priority
|
||||
/>
|
||||
<div className={styles.spacer} />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user