refactor: migrate img tags to next/image and fix hook usage
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
* - Context 形状与初始值位于 user-context.ts
|
||||
* - 事件联合位于 user-events.ts
|
||||
*/
|
||||
export * from "./machine/user-state";
|
||||
export * from "./user-state";
|
||||
export * from "./user-context";
|
||||
export * from "./machine/user-events";
|
||||
export * from "./user-events";
|
||||
export * from "./user-types";
|
||||
export { userMachine } from "./user-machine";
|
||||
|
||||
@@ -17,13 +17,13 @@ import { authRepository } from "@/data/repositories/auth_repository";
|
||||
import { UserStorage } from "@/data/storage/user/user_storage";
|
||||
import { Result } from "@/utils/result";
|
||||
|
||||
import { UserState, initialState } from "./machine/user-state";
|
||||
import type { UserEvent } from "./machine/user-events";
|
||||
import { UserState, initialState } from "./user-state";
|
||||
import type { UserEvent } from "./user-events";
|
||||
|
||||
// 重新导出 State / Event 类型,保持 machine 文件的公共 API 不变
|
||||
export type { UserState } from "./machine/user-state";
|
||||
export { initialState } from "./machine/user-state";
|
||||
export type { UserEvent } from "./machine/user-events";
|
||||
export type { UserState } from "./user-state";
|
||||
export { initialState } from "./user-state";
|
||||
export type { UserEvent } from "./user-events";
|
||||
|
||||
// ============================================================
|
||||
// Helpers
|
||||
@@ -7,4 +7,4 @@
|
||||
* - Context 形状与初始值由 `user-context.ts` 导出
|
||||
* - `UserState` 由 `user-context.tsx` 导出(保持原 API 兼容)
|
||||
*/
|
||||
export type { UserEvent } from "./machine/user-events";
|
||||
export type { UserEvent } from "./user-events";
|
||||
|
||||
Reference in New Issue
Block a user