refactor: migrate img tags to next/image and fix hook usage

This commit is contained in:
2026-06-10 19:16:41 +08:00
parent 47591be41c
commit 2bc2e1b691
30 changed files with 62 additions and 55 deletions
@@ -14,12 +14,12 @@ import { authRepository } from "@/data/repositories/auth_repository";
import { AuthStorage } from "@/data/storage/auth/auth_storage";
import { Result } from "@/utils/result";
import { AuthState, initialState } from "../auth-state";
import { AuthState, initialState } from "./auth-state";
import type { AuthEvent } from "./auth-events";
// 重新导出 State / Event 类型,保持 machine 文件的公共 API 不变
export type { AuthState } from "../auth-state";
export { initialState } from "../auth-state";
export type { AuthState } from "./auth-state";
export { initialState } from "./auth-state";
export type { AuthEvent } from "./auth-events";
// ============================================================
+1 -1
View File
@@ -7,4 +7,4 @@
* - Context 形状与初始值由 `auth-context.ts` 导出
* - `AuthState` 由 `auth-context.tsx` 导出(保持原 API 兼容)
*/
export type { AuthEvent } from "./machine/auth-events";
export type { AuthEvent } from "./auth-events";
+2 -2
View File
@@ -8,6 +8,6 @@
*/
export * from "./auth-state";
export * from "./auth-context";
export * from "./machine/auth-events";
export * from "./machine/auth-machine";
export * from "./auth-events";
export * from "./auth-machine";
export * from "./auth-types";