``update Replace getStudentAvatar with getStudentAvatarUrl for avatar URL generation in student profile``

This commit is contained in:
2025-05-16 15:56:19 +08:00
parent 60df47fb8d
commit 779062e247

View File

@@ -19,7 +19,7 @@ import { getUserMetaById } from '../../../db/UserMetas/GetById';
import { useTranslation } from 'react-i18next';
import { DBUserMeta } from '../../../db/UserMetas/type';
import { LoadingScreen } from '../../../components/LoadingScreen';
import { getStudentAvatar } from '../../../lib/getStudentAvatar';
import { getStudentAvatarUrl } from '../../../lib/getStudentAvatar';
import { authClient } from '../../../lib/auth/custom/client';
import { useUser } from '../../../hooks/use-user';
@@ -82,7 +82,7 @@ function StudentInfo(): React.JSX.Element {
<IonCol size={'3'}>
<div
style={{
backgroundImage: getStudentAvatar(studentMeta),
backgroundImage: getStudentAvatarUrl(studentMeta),
backgroundSize: 'cover',
backgroundPosition: 'center',
backgroundRepeat: 'no-repeat',