Skip to content

Commit d37d97b

Browse files
committed
changed structure of the data
1 parent 2486d4a commit d37d97b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Components/AllUsers.jsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ export default function AllUsers() {
99
const [users, setUsers] = useState([]);
1010
const data = useRef([]);
1111
const getAllUsers = async () => {
12-
const querySnapshot = await getDocs(collection(db, "users"));
12+
const querySnapshot = await getDocs(collection(db, "cS-Saturdays"));
1313
querySnapshot.forEach((d) => {
1414
const user = d.data();
1515
data.current.push({
1616
rollNumber: user.roll,
1717
name: user.name,
1818
email: user.email,
19-
college: user.college,
19+
// college: user.college,
2020
phone: user.phone,
2121
year: user.year,
2222
department: user.branch,
@@ -47,9 +47,9 @@ export default function AllUsers() {
4747
<tr>
4848
<th>Roll Number</th>
4949
<th>Name</th>
50-
<th>College</th>
50+
{/* <th>College</th> */}
5151
<th>Email / Mobile </th>
52-
<th>member 2</th>
52+
{/* <th>member 2</th> */}
5353
<th>Department</th>
5454
<th>What fascinates u about programming ?</th>
5555
<th>Any programming experience?</th>
@@ -64,11 +64,11 @@ export default function AllUsers() {
6464
<Checkbox label={user.roll} />
6565
</td>
6666
<td>{user.name}</td>
67-
<td>{user.college}</td>
67+
{/* <td>{user.college}</td> */}
6868
<td>
6969
{user.email} --- {user.phone}
7070
</td>
71-
{user.name2?<><td>{user.name2}-{user.roll2}</td></>:<>none</>}
71+
{/* {user.name2?<><td>{user.name2}-{user.roll2}</td></>:<>none</>} */}
7272

7373
<td>
7474
{user.branch}, {user.section}, {user.year} year

0 commit comments

Comments
 (0)