``update Replace getStudentAvatar with getStudentAvatarUrl for avatar URL generation in student profile
``
This commit is contained in:
@@ -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',
|
||||
|
Reference in New Issue
Block a user