File tree Expand file tree Collapse file tree 1 file changed +38
-31
lines changed Expand file tree Collapse file tree 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() {
99 const querySnapshot = await getDocs ( collection ( db , "users" ) ) ;
1010 setUsers ( querySnapshot . docs ) ;
1111 } ;
12+
1213
1314 useEffect ( ( ) => {
1415 getAllUsers ( ) ;
1516 } , [ ] ) ;
1617
1718 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 >
4956 </ div >
5057 ) ;
5158}
You can’t perform that action at this time.
0 commit comments