File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
import React , { useState , useEffect } from 'react' ;
2
2
import { motion } from 'framer-motion' ;
3
3
import { Card , CardHeader , CardTitle , CardContent } from '@/components/ui/card' ;
4
- import { Avatar , AvatarImage , AvatarFallback } from '@/components/ui/avatar' ;
4
+ import { SmartAvatar } from '@/components/ui/smart- avatar' ;
5
5
import { GraduationCap , Clock , MapPin , Users } from 'lucide-react' ;
6
6
import { useUserContext } from '../UserEnvProvider' ;
7
7
import { Button } from '@/components/ui/button' ;
@@ -116,9 +116,12 @@ export default function Group({ courseId }: GroupProps) {
116
116
< Users className = "w-4 h-4 mr-1" />
117
117
< span > Members: { group . user_info . length } </ span >
118
118
{ group . user_info . map ( ( user : any ) => (
119
- < Avatar key = { user . user_id } className = "w-8 h-8" title = { user . name } >
120
- < AvatarFallback title = { user . name } > { user . name . slice ( 0 , 2 ) . toUpperCase ( ) } </ AvatarFallback >
121
- </ Avatar >
119
+ < SmartAvatar
120
+ key = { user . user_id }
121
+ name = { user . name }
122
+ photo = { user . photo }
123
+ className = "w-8 h-8"
124
+ />
122
125
) ) }
123
126
</ div >
124
127
< div className = "mt-4" >
You can’t perform that action at this time.
0 commit comments