refactor: migrate img tags to next/image and fix hook usage
This commit is contained in:
@@ -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";
|
||||
|
||||
// ============================================================
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user