Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Frontend-MECRED
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MECRED
Frontend-MECRED
Commits
8dcca3a7
Commit
8dcca3a7
authored
1 month ago
by
esrsc23
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#305
: FIX Followers and following cards
parent
4cb941cf
No related branches found
No related tags found
1 merge request
!289
Issue #305: FIX Followers and following cards
Pipeline
#42097
passed
1 month ago
Stage: build
Changes
3
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/app/components/UsersPageCard.js
+1
-1
1 addition, 1 deletion
src/app/components/UsersPageCard.js
src/app/perfil/[id]/components/UserCard.js
+2
-2
2 additions, 2 deletions
src/app/perfil/[id]/components/UserCard.js
src/app/perfil/[id]/page.js
+1
-0
1 addition, 0 deletions
src/app/perfil/[id]/page.js
with
4 additions
and
3 deletions
src/app/components/UsersPageCard.js
+
1
−
1
View file @
8dcca3a7
...
...
@@ -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
"
/>
...
...
This diff is collapsed.
Click to expand it.
src/app/perfil/[id]/components/UserCard.js
+
2
−
2
View file @
8dcca3a7
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/app/perfil/[id]/page.js
+
1
−
0
View file @
8dcca3a7
...
...
@@ -105,6 +105,7 @@ export default function Perfil({ params }) {
.
get
(
`/users/
${
id
}
`
)
.
then
(({
data
})
=>
{
setProfileData
(
data
);
console
.
log
(
data
)
})
.
catch
(()
=>
setError
(
true
))
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment