Skip to content
Snippets Groups Projects
Commit 8dcca3a7 authored by esrsc23's avatar esrsc23
Browse files

Issue #305: FIX Followers and following cards

parent 4cb941cf
No related branches found
No related tags found
1 merge request!289Issue #305: FIX Followers and following cards
Pipeline #42097 passed
......@@ -47,7 +47,7 @@ export default function UsersPageCard({ item }) {
return (
item &&
<Link tabIndex="-1" href={`/perfil/${item["id"]}`}>
<div id="conteudo" tabIndex="0" className="flex flex-col w-[300px] min-h-[270px] bg-ice-HC-dark outline outline-1 outline-lightGray-HC-white m-4 rounded-lg hover:bg-ice-HC-dark-hover focus:bg-ice-HC-dark-hover">
<div id="conteudo" tabIndex="0" className="flex flex-col w-[280px] py-6 2xl:w-[300px] min-h-[270px] bg-ice-HC-dark m-4 rounded-lg hover:bg-ice-HC-dark-hover focus:bg-ice-HC-dark-hover outline outline-1 outline-ice-HC-white">
<div className="grid justify-items-center h-[200px] pt-2">
{item["avatar"] ?
<Avatar src={mecredURL + item["avatar"]} sx={{ position: "inherit" }} className=" min-h-[120px] min-w-[120px] m-2" />
......
......@@ -162,8 +162,8 @@ export default function UserCard({ profileData, idLogin, achievements, progresse
// Função que análisa se o usuário é considerado "verificado" conforme cargo
const verifier = async () => {
const all_roles = [
"teacher", "admin", "curator", "moderator",
"supervisor", "editor", "partner", "publisher", "submitter"
"admin", "curator", "moderator",
"supervisor", "editor", "partner", "publisher"
];
// Extrai todos os nomes dos cargos do usuário
......
......@@ -105,6 +105,7 @@ export default function Perfil({ params }) {
.get(`/users/${id}`)
.then(({ data }) => {
setProfileData(data);
console.log(data)
})
.catch(() => setError(true))
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment