Skip to content

Commit

Permalink
refactor(admin): remove unused certification info-tag component
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeyffrey committed Feb 12, 2025
1 parent 4078704 commit d042f5a
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 90 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@ import CertificationInfoField from '../../info-field';

<template>
<div class="certification-informations__card">
<h2 class="certification-informations__card__title">
<div class="certification-informations__tag--float">
{{#if @certification.isPublished}}
<PixTag @color="success">Publiée</PixTag>
{{/if}}
{{#if @certification.isCertificationCancelled}}
<PixTag @color="error">Annulée</PixTag>
{{/if}}
</div>
<h2 class="certification-informations__card__title certification-informations__card__title--state">
État
{{#if @certification.isPublished}}
<PixTag @color="success">Publiée</PixTag>
{{/if}}
{{#if @certification.isCertificationCancelled}}
<PixTag @color="error">Annulée</PixTag>
{{/if}}
</h2>
<CertificationInfoField
@value={{@session.id}}
Expand Down
12 changes: 0 additions & 12 deletions admin/app/components/certifications/info-tag.gjs

This file was deleted.

1 change: 0 additions & 1 deletion admin/app/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
@use 'components/certification-details-answer' as *;
@use 'components/certification-details-competence' as *;
@use 'components/certification-info-field' as *;
@use 'components/certification-info-tag' as *;
@use 'components/certification-issue-reports' as *;
@use 'components/certification/candidate-edit-modal' as *;
@use 'components/certification/certification-status-select' as *;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@
&__title {
margin-bottom: 0.75rem;
font-size: 1.25rem;

&--state {
display: flex;
flex-wrap: wrap;
gap: var(--pix-spacing-2x) var(--pix-spacing-4x);
justify-content: space-between;
}
}

&__list {
Expand Down
3 changes: 0 additions & 3 deletions admin/app/styles/components/certification-info-tag.scss

This file was deleted.

This file was deleted.

0 comments on commit d042f5a

Please sign in to comment.