+const TimeUnit = memo(({ value, label }: TimeUnitProps) => (
+
{value < 10 ? `0${value}` : value}
-
-
- {value < 10 ? `0${value}` : value}
-
-
{label}
-
;
-});
+
+));
export default TimeUnit;
diff --git a/packages/user/src/hooks/query/useGetUserInfo.ts b/packages/user/src/hooks/query/useGetUserInfo.ts
index e8457db0..6649f6d7 100644
--- a/packages/user/src/hooks/query/useGetUserInfo.ts
+++ b/packages/user/src/hooks/query/useGetUserInfo.ts
@@ -6,25 +6,21 @@ import http from 'src/services/api/index.ts';
import QUERY_KEYS from 'src/services/api/queryKey.ts';
import CustomError from 'src/utils/error.ts';
-export type UserResponse = {
+export interface UserInfoResponse {
userId: string;
userName: string;
team: ServerCategoryEnum | null;
url: string | null;
-};
+}
export default function useGetUserInfo() {
- const { isAuthenticated, token, clearAuthData } = useAuth();
+ const { token, clearAuthData } = useAuth();
const {
data: userInfo,
status,
...props
- } = useQuery