diff --git a/src/App.js b/src/App.js index 0fc70e0d..c49786a6 100644 --- a/src/App.js +++ b/src/App.js @@ -97,6 +97,7 @@ export default function App() { } /> + {/* } /> @@ -105,7 +106,7 @@ export default function App() { } /> } /> - + */} ); } diff --git a/src/components/hackeps/Home/Sponsors.css b/src/components/hackeps/Home/Sponsors.css index f86f83f9..73431191 100644 --- a/src/components/hackeps/Home/Sponsors.css +++ b/src/components/hackeps/Home/Sponsors.css @@ -133,23 +133,23 @@ img { } .sponsor-group-group-1 { + margin-top: 2rem; display: flex; width: 100%; + scale: 1.5; justify-content: center; - scale: 1.2; } .sponsor-group-group-2 { display: flex; - width: 90%; - scale: 0.9; + width: 100%; justify-content: center; + scale: 1; } .sponsor-group-group-3 { display: flex; - width: 18%; - scale: 0.5; + scale: 0.81; justify-content: center; } diff --git a/src/components/hackeps/Home/Sponsors.js b/src/components/hackeps/Home/Sponsors.js index 97e2cb9e..5db14f6d 100644 --- a/src/components/hackeps/Home/Sponsors.js +++ b/src/components/hackeps/Home/Sponsors.js @@ -38,10 +38,11 @@ const Sponsors = () => { useEffect(() => { const fetchData = async () => { try { - const companyData = await getCompanyByTier(1); + const companyDataTier1 = await getCompanyByTier(1); const companyDataTier2 = await getCompanyByTier(2); - getInfoAll(companyData); - companyData.map((pos, index) => { + const companyDataTier3 = await getCompanyByTier(3); + getInfoAll(companyDataTier1); + companyDataTier1.map((pos, index) => { imgs2[index] = { image: pos.image, importance: 1, @@ -57,6 +58,14 @@ const Sponsors = () => { id: pos.id, }); }); + companyDataTier3.map((pos, index) => { + imgs2.push({ + image: pos.image, + importance: 3, + url: pos.website, + id: pos.id, + }); + }); } catch (error) { console.log("El error obtenido es:", error); } @@ -68,6 +77,7 @@ const Sponsors = () => { const groups = { 1: [], 2: [], + 3: [], }; imgs2.forEach((img) => { @@ -75,7 +85,7 @@ const Sponsors = () => { {`Logo redirectToURL(img.id)} />, @@ -97,9 +107,10 @@ const Sponsors = () => {
-
+
{groups[1]}
{groups[2]}
+
{groups[3]}

diff --git a/src/pages/hackeps/Dashboard/Dashboard.jsx b/src/pages/hackeps/Dashboard/Dashboard.jsx index c9e23695..25cfd1f8 100644 --- a/src/pages/hackeps/Dashboard/Dashboard.jsx +++ b/src/pages/hackeps/Dashboard/Dashboard.jsx @@ -1,6 +1,7 @@ import React, { useEffect, useState } from "react"; import { acceptHackerToEvent, + getHackeps, getPendingHackersGruped, rejectHackerToEvent, } from "src/services/EventService"; @@ -38,7 +39,8 @@ function TableRow({ user: userParam, isGroup }) { }, [userParam]); async function handleAcceptar() { - if (await acceptHackerToEvent(user.id, "1")) { + let hack = await getHackeps(); + if (await acceptHackerToEvent(user.id, hack.id)) { setIsApproved(true); } } @@ -55,8 +57,8 @@ function TableRow({ user: userParam, isGroup }) { ]); if (res !== user.name) return; - - await rejectHackerToEvent(user.id, "1"); + let hack = await getHackeps(); + await rejectHackerToEvent(user.id, hack.id); window.location.reload(); return; }