Skip to content

Commit

Permalink
feat(mon-pix): replace FaIcon in details of Module with PixIcon
Browse files Browse the repository at this point in the history
Co-authored-by: Clément Latzarus <[email protected]>
Co-authored-by: Eric Lim <[email protected]>
  • Loading branch information
3 people authored and yannbertrand committed Dec 16, 2024
1 parent c40e0dc commit 21c2d5d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
5 changes: 3 additions & 2 deletions mon-pix/app/components/module/_details.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,16 @@
&__title {
@extend %pix-body-xs;

display: flex;
align-items: center;
color: var(--pix-neutral-800);
text-align: center;
text-transform: uppercase;
}
}

.module-details-infos-indications-category-title {
&__icon {
margin-right: var(--pix-spacing-2x);
margin-right: var(--pix-spacing-1x);
}
}

Expand Down
18 changes: 11 additions & 7 deletions mon-pix/app/components/module/details.gjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import PixButton from '@1024pix/pix-ui/components/pix-button';
import PixIcon from '@1024pix/pix-ui/components/pix-icon';
import PixModal from '@1024pix/pix-ui/components/pix-modal';
import { action } from '@ember/object';
import { service } from '@ember/service';
import FaIcon from '@fortawesome/ember-fontawesome/components/fa-icon';
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { t } from 'ember-intl';
Expand Down Expand Up @@ -135,17 +135,21 @@ export default class ModulixDetails extends Component {
<div class="module-details-infos__indications">
<div class="module-details-infos-indications__category">
<div class="module-details-infos-indications-category__title">
<FaIcon @icon="stopwatch" class="module-details-infos-indications-category-title__icon" />{{t
"pages.modulix.details.duration"
}}
<PixIcon
@name="stopwatch"
class="module-details-infos-indications-category-title__icon"
@ariaHidden="true"
/>{{t "pages.modulix.details.duration"}}
</div>
<p>{{t "pages.modulix.details.durationValue" htmlSafe=true duration=@module.details.duration}}</p>
</div>
<div class="module-details-infos-indications__category">
<div class="module-details-infos-indications-category__title">
<FaIcon @icon="signal" class="module-details-infos-indications-category-title__icon" />{{t
"pages.modulix.details.level"
}}
<PixIcon
@name="barsUp"
class="module-details-infos-indications-category-title__icon"
@ariaHidden="true"
/>{{t "pages.modulix.details.level"}}
</div>
<p>{{@module.details.level}}</p>
</div>
Expand Down

0 comments on commit 21c2d5d

Please sign in to comment.