Refactor code structure for improved readability and maintainability

This commit is contained in:
2026-03-10 16:37:55 +07:00
parent 75ed8e233b
commit 8908395867
45 changed files with 2528 additions and 365 deletions
+1
View File
@@ -25,6 +25,7 @@ export function useAuth() {
email: (sessionUser as any).email || "",
avatarUrl: (sessionUser as any).image || "",
avatarColor: "bg-blue-500", // Mặc định
role: (sessionUser as any).role || "USER",
createdAt: new Date().toISOString().split("T")[0],
}
}, [sessionUser])
+1
View File
@@ -40,6 +40,7 @@ export interface User {
email: string
avatarColor: string
avatarUrl?: string
role?: "USER" | "MOD" | "ADMIN"
createdAt: string
}