Skip to content

Commit

Permalink
feat(admin-react): completed dematerialized feasibility file competen…
Browse files Browse the repository at this point in the history
…ces blocs now show an "update" button instead of a "complete" one
  • Loading branch information
agarbe committed Jul 1, 2024
1 parent f8eb0e0 commit 58da1c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const getCandidacyById = graphql(`
state
}
blocsDeCompetences {
complete
certificationCompetenceBloc {
id
code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,22 @@ const AapFeasibilityPage = () => {
{dematerializedFeasibilityFile?.blocsDeCompetences?.map((bc) => (
<li
key={bc.certificationCompetenceBloc.id}
className="flex flex-grow items-center"
className="grid grid-cols-[1fr_120px] items-center"
>
<span>
{bc.certificationCompetenceBloc.code
? `${bc.certificationCompetenceBloc.code} - ${bc.certificationCompetenceBloc.label}`
: bc.certificationCompetenceBloc.label}
</span>
<Button
className="ml-auto"
className="w-full"
linkProps={{
href: `/candidacies/${candidacyId}/feasibility-aap/competencies-blocks/${bc.certificationCompetenceBloc.id}`,
}}
>
Compléter
<span className="mx-auto">
{bc.complete ? "Modifier" : "Compléter"}
</span>
</Button>
</li>
))}
Expand Down

0 comments on commit 58da1c6

Please sign in to comment.