File tree 1 file changed +38
-31
lines changed
1 file changed +38
-31
lines changed Original file line number Diff line number Diff line change @@ -9,43 +9,50 @@ export default function AllUsers() {
9
9
const querySnapshot = await getDocs ( collection ( db , "users" ) ) ;
10
10
setUsers ( querySnapshot . docs ) ;
11
11
} ;
12
+
12
13
13
14
useEffect ( ( ) => {
14
15
getAllUsers ( ) ;
15
16
} , [ ] ) ;
16
17
17
18
return (
18
- < div className = "p-8" >
19
- < span className = "text-[1.1rem] text-white" > Total : { users . length } </ span >
20
-
21
- < Table >
22
- < thead >
23
- < tr >
24
- < th > Roll Number</ th >
25
- < th > Name</ th >
26
- < th > Email</ th >
27
- < th > Mobile</ th >
28
- < th > Branch</ th >
29
-
30
- </ tr >
31
- </ thead >
32
- < tbody >
33
- { users . map ( ( user ) => {
34
- user = user . data ( ) ;
35
- return (
36
- < tr key = { user . email } >
37
- < td >
38
- < Checkbox label = { user . roll } />
39
- </ td >
40
- < td > { user . name } </ td >
41
- < td > { user . email } </ td >
42
- < td > { user . phone } </ td >
43
- < td > { user . branch } </ td >
44
- </ tr >
45
- ) ;
46
- } ) }
47
- </ tbody >
48
- </ Table >
19
+ < div className = "p-8" >
20
+ < span className = "text-[1.1rem] text-white" > Total : { users . length } </ span >
21
+
22
+
23
+ < Table striped highlightOnHover horizontalSpacing = { 10 } className = " !w-screen " >
24
+ < thead >
25
+ < tr >
26
+ < th > Roll Number</ th >
27
+ < th > Name</ th >
28
+ < th > Email / Mobile </ th >
29
+ < th > Department</ th >
30
+ < th > What fascinates u about programming ?</ th >
31
+ < th > Any programming experience?</ th >
32
+
33
+
34
+ </ tr >
35
+ </ thead >
36
+ < tbody >
37
+ { users . map ( ( user ) => {
38
+ user = user . data ( ) ;
39
+ return (
40
+ < tr key = { user . email } >
41
+ < td >
42
+ < Checkbox label = { user . roll } />
43
+ </ td >
44
+ < td > { user . name } </ td >
45
+ < td > { user . email } --- { user . phone } </ td >
46
+
47
+ < td > { user . branch } , { user . section } , { user . year } year</ td >
48
+ < td > < p > { user . q1 } </ p > </ td >
49
+ < td > < p > { user . q2 } </ p > </ td >
50
+
51
+ </ tr >
52
+ ) ;
53
+ } ) }
54
+ </ tbody >
55
+ </ Table >
49
56
</ div >
50
57
) ;
51
58
}
You can’t perform that action at this time.
0 commit comments