diff --git a/frontend/src/components/LandingPages/LandingPages.js b/frontend/src/components/LandingPages/LandingPages.js
index d287bc6..749362c 100644
--- a/frontend/src/components/LandingPages/LandingPages.js
+++ b/frontend/src/components/LandingPages/LandingPages.js
@@ -11,9 +11,7 @@ function LandingPages() {
{/*
*/}
-
>
-
);
}
diff --git a/frontend/src/components/LandingPages/Register/Register.js b/frontend/src/components/LandingPages/Register/Register.js
index 56166ee..c08efc1 100644
--- a/frontend/src/components/LandingPages/Register/Register.js
+++ b/frontend/src/components/LandingPages/Register/Register.js
@@ -11,16 +11,15 @@ function Register() {
}, [navigate]);
return (
-
-
-
-
);
}
-export default Register;
\ No newline at end of file
+export default Register;
diff --git a/frontend/src/components/LandingPages/Team/Team.js b/frontend/src/components/LandingPages/Team/Team.js
index 3c92b86..249785d 100644
--- a/frontend/src/components/LandingPages/Team/Team.js
+++ b/frontend/src/components/LandingPages/Team/Team.js
@@ -2,37 +2,45 @@ import React, { useState } from 'react';
import styles from './Team.module.css';
import Carousel from '../Home/Carousel/Carouselhp';
import { data, scopes } from './TeamData';
-import Member from "./Member/Member.js"
-
+import Member from './Member/Member.js';
function Team() {
- console.log(data)
- const [cardData, setCardData] = useState(data["All"]);
- const [activeTab, setActiveTab] = useState("All");
+ console.log(data);
+ const [cardData, setCardData] = useState(data['All']);
+ const [activeTab, setActiveTab] = useState('All');
return (
-
<>
-
Our Team
+
+ Our Team
+
- {
- scopes.map(scope => {
- return
- })
- }
+ {scopes.map((scope) => {
+ return (
+
+ );
+ })}
- {
- cardData.map(personInfo => {
- return
- })
- }
+ {cardData.map((personInfo) => {
+ return ;
+ })}
diff --git a/frontend/src/components/LandingPages/UserData/MatchList.js b/frontend/src/components/LandingPages/UserData/MatchList.js
index 137697b..e35d129 100644
--- a/frontend/src/components/LandingPages/UserData/MatchList.js
+++ b/frontend/src/components/LandingPages/UserData/MatchList.js
@@ -2,12 +2,11 @@ import React, { useState } from 'react';
import { MdOutlineWatchLater, MdDateRange } from 'react-icons/md';
const MatchList = ({ matches }) => {
- if(matches===undefined)
- return (<>>)
+ if (matches === undefined) return <>>;
return (
{matches.map((match) => (
-
+
))}
);
@@ -17,14 +16,14 @@ function MatchEntry({ match }) {
const [detailsVisible, setDetailsVisible] = useState(false);
const dateTime = new Date(match.game_start);
-// Extracting date
-const year = dateTime.getFullYear();
-const month = dateTime.getMonth() + 1; // Months are zero-based
-const day = dateTime.getDate();
+ // Extracting date
+ const year = dateTime.getFullYear();
+ const month = dateTime.getMonth() + 1; // Months are zero-based
+ const day = dateTime.getDate();
-// Extracting time
-const hours = dateTime.getUTCHours();
-const minutes = dateTime.getUTCMinutes();
+ // Extracting time
+ const hours = dateTime.getUTCHours();
+ const minutes = dateTime.getUTCMinutes();
return (
@@ -37,7 +36,7 @@ const minutes = dateTime.getUTCMinutes();
*/}
-
{hours+":"+minutes}
+
{hours + ':' + minutes}
diff --git a/frontend/src/components/LandingPages/UserData/ShowTable.js b/frontend/src/components/LandingPages/UserData/ShowTable.js
index 1b1caec..d9006ca 100644
--- a/frontend/src/components/LandingPages/UserData/ShowTable.js
+++ b/frontend/src/components/LandingPages/UserData/ShowTable.js
@@ -1,11 +1,11 @@
import React, { useState, useEffect } from 'react';
import axios from 'axios';
// import { useNavigate } from 'react-router';
-import './Table.css'
+import './Table.css';
// import {CSVLink} from 'react-csv'
const ShowTable = () => {
-// const navigate = useNavigate();
+ // const navigate = useNavigate();
const token = localStorage.getItem('token');
const baseUrl = process.env.REACT_APP_BASE_URL;
@@ -33,50 +33,50 @@ const ShowTable = () => {
{/* Display a list of users */}
{users.length > 0 ? (
-
-
-
- User |
- Name |
- Email |
- Designation |
- Institute |
- Phone |
- Leader |
- Leader Contact |
- Boys |
- Girls |
- Faculty Members |
- Supporting Staff |
- Games |
-
-
-
- {users.map((user, index) => (
-
- {index + 1} |
- {user.name} |
- {user.email} |
- {user.designation} |
- {user.institution_name} |
- {user.phone_no} |
- {user.leader_name} |
- {user.leader_contact_num} |
- {user.num_of_boys} |
- {user.num_of_girls} |
- {user.num_of_faculty_members} |
- {user.num_of_supporting_staff} |
- {user.games} |
+
+
+
+ User |
+ Name |
+ Email |
+ Designation |
+ Institute |
+ Phone |
+ Leader |
+ Leader Contact |
+ Boys |
+ Girls |
+ Faculty Members |
+ Supporting Staff |
+ Games |
- ))}
-
-
- {/*
+ {/*
*/}
) : (
-
No data
+
No data
)}
);
diff --git a/frontend/src/components/LandingPages/UserData/ShowallTable.js b/frontend/src/components/LandingPages/UserData/ShowallTable.js
index 8dc2dac..c102039 100644
--- a/frontend/src/components/LandingPages/UserData/ShowallTable.js
+++ b/frontend/src/components/LandingPages/UserData/ShowallTable.js
@@ -1,11 +1,11 @@
import React, { useState, useEffect } from 'react';
import axios from 'axios';
// import { useNavigate } from 'react-router';
-import './Table.css'
+import './Table.css';
// import {CSVLink} from 'react-csv'
const ShowallTable = () => {
-// const navigate = useNavigate();
+ // const navigate = useNavigate();
const token = localStorage.getItem('token');
const baseUrl = process.env.REACT_APP_BASE_URL;
@@ -33,37 +33,37 @@ const ShowallTable = () => {
{/* Display a list of users */}
{users.length > 0 ? (
-
-
-
- S.No |
- Name |
- Institute |
- Phone Number |
- Designation |
-
-
-
- {users.map((user, index) => (
-
- {index + 1} |
- {user.name} |
- {user.institution_name} |
- {user.phone_no} |
- {user.designation} |
+
+
+
+ S.No |
+ Name |
+ Institute |
+ Phone Number |
+ Designation |
- ))}
-
-
- {/*
+ {/*
*/}
) : (
-
No data
+
No data
)}
);
};
-export default ShowallTable;
\ No newline at end of file
+export default ShowallTable;
diff --git a/frontend/src/components/LandingPages/UserData/Sidebar.js b/frontend/src/components/LandingPages/UserData/Sidebar.js
index e0caab0..53ec282 100644
--- a/frontend/src/components/LandingPages/UserData/Sidebar.js
+++ b/frontend/src/components/LandingPages/UserData/Sidebar.js
@@ -6,7 +6,9 @@ const Sidebar = ({ sports, onSelectSport, selectedSport }) => {
{sports.map((sport) => (
onSelectSport(sport)}
>
{sport}