Skip to content

Commit

Permalink
Merge pull request #128 from IEEEUCSC/udeesha_dev
Browse files Browse the repository at this point in the history
Aneble form and add instergram
  • Loading branch information
Udeesha-Prabhashana authored Feb 6, 2024
2 parents 7b20e64 + 068e1c9 commit 3ed31ed
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Frontend/src/Components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const Footer = () => {
</a>
</div>
<div>
<a href="https://github.com/IEEEUCSC" id="footerLink">
<a href="https://www.instagram.com/ucsc.wie?igsh=OHBzd25kZXByazJn" id="footerLink">
<div className="md:text-2xl md:p-1 hover:text-violet-400 text-white text-center transition-transform transform hover:scale-80 capitalize ">
Instagram
</div>
Expand Down
21 changes: 11 additions & 10 deletions Frontend/src/Components/TeamRegistration/TeamRegi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export default function Registration() {
const [teamMemberCount] = useState(2); // Default to 2 members
const [teamMembers, setTeamMembers] = useState<any[]>(["member1", "member2"]);

const [slotsRemaining, setSlotsRemaining] = useState(0);
// const [slotsRemaining, setSlotsRemaining] = useState(0);


// get from the form
const [university, setUniversity] = useState(
Expand Down Expand Up @@ -65,15 +66,15 @@ export default function Registration() {
};

// get team count Network.shared.getTeamCount()
useEffect(() => {
const fetchData = async () => {
const result = await Network.shared.getTeamCount();
console.log(result);
setSlotsRemaining(result);
}
fetchData();
}
, []);
// useEffect(() => {
// const fetchData = async () => {
// const result = await Network.shared.getTeamCount();
// console.log(result);
// setSlotsRemaining(result);
// }
// fetchData();
// }
// , []);

return (
<div className="site-section local-bootstrap reg-section">
Expand Down

0 comments on commit 3ed31ed

Please sign in to comment.