Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Egresso" mesmo se um curso está em andamento #269

Open
AllanSmithll opened this issue Oct 23, 2024 · 0 comments
Open

"Egresso" mesmo se um curso está em andamento #269

AllanSmithll opened this issue Oct 23, 2024 · 0 comments

Comments

@AllanSmithll
Copy link
Contributor

AllanSmithll commented Oct 23, 2024

A lógica referente a egressos poderia ser mudada, pois está levando em conta se o estudante possui algum curso finalizado:

  • Função
    export function isFinishedSomeCourse(person: CollectionEntry<'people'>) { return person.data.occupations.some( (occupation: Student) => occupation.isFinished ); }
  • Uso
    isFinishedSomeCourse(person) && ( <Badge url="/projects/people/egresso/1" text="egresso" /> )

Posso fazer uma mudança em que, caso haja pelo menos 1 curso em andamento, não apareça "Egresso"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant