Skip to content

Commit

Permalink
feat(addon/components/paper-card): migrates to tagless native class.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhartstonge committed Oct 17, 2024
1 parent 954e653 commit ef00a75
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
18 changes: 10 additions & 8 deletions addon/components/paper-card.hbs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{{yield (hash
title=(component "paper-card-title")
content=(component "paper-card-content")
actions=(component "paper-card-actions")
header=(component "paper-card-header")
image=(component "paper-card-image")
media=(component "paper-card-media")
)}}
<md-card ...attributes>
{{yield (hash
title=(component "paper-card-title")
content=(component "paper-card-content")
actions=(component "paper-card-actions")
header=(component "paper-card-header")
image=(component "paper-card-image")
media=(component "paper-card-media")
)}}
</md-card>
8 changes: 4 additions & 4 deletions addon/components/paper-card.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable ember/no-classic-components, ember/require-tagless-components */
/* eslint-disable ember/no-classic-components */
/**
* @module ember-paper
*/
Expand All @@ -8,6 +8,6 @@ import Component from '@ember/component';
* @class PaperCard
* @extends Ember.Component
*/
export default Component.extend({
tagName: 'md-card',
});
export default class PaperCard extends Component {
tagName = '';
}

0 comments on commit ef00a75

Please sign in to comment.