Skip to content

Commit

Permalink
feat(orga): pix-toggle to pix-toggle-button
Browse files Browse the repository at this point in the history
  • Loading branch information
alicegoarnisson authored and xav-car committed Dec 3, 2024
1 parent e8bed4f commit 7bc62e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions orga/app/components/campaign/filter/campaign-filters.gjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import PixFilterBanner from '@1024pix/pix-ui/components/pix-filter-banner';
import PixToggle from '@1024pix/pix-ui/components/pix-toggle';
import PixToggleButton from '@1024pix/pix-ui/components/pix-toggle-button';
import { action } from '@ember/object';
import Component from '@glimmer/component';
import { t } from 'ember-intl';
Expand Down Expand Up @@ -52,11 +52,11 @@ export default class CampaignFilters extends Component {
/>
{{/unless}}

<PixToggle @toggled={{this.isToggleSwitched}} @onChange={{this.onToggle}} @screenReaderOnly={{true}}>
<PixToggleButton @toggled={{this.isToggleSwitched}} @onChange={{this.onToggle}} @screenReaderOnly={{true}}>
<:label>{{t "pages.campaigns-list.action.campaign.label"}}</:label>
<:on>{{t "pages.campaigns-list.action.campaign.ongoing"}}</:on>
<:off>{{t "pages.campaigns-list.action.campaign.archived"}}</:off>
</PixToggle>
</PixToggleButton>
</PixFilterBanner>
</template>
}

0 comments on commit 7bc62e6

Please sign in to comment.