From 175f4eb7e00bb670d401c8ac04c5474617686e45 Mon Sep 17 00:00:00 2001 From: Matthew Hartstonge Date: Thu, 17 Oct 2024 12:42:59 +1300 Subject: [PATCH] feat(addon/components/paper-card): migrates to tagless native class. --- addon/components/paper-card.hbs | 18 ++++++++++-------- addon/components/paper-card.js | 8 ++++---- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/addon/components/paper-card.hbs b/addon/components/paper-card.hbs index 4749579b0..37d26dc64 100644 --- a/addon/components/paper-card.hbs +++ b/addon/components/paper-card.hbs @@ -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") -)}} \ No newline at end of file + + {{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") + )}} + \ No newline at end of file diff --git a/addon/components/paper-card.js b/addon/components/paper-card.js index d3d820984..0797f4ec0 100644 --- a/addon/components/paper-card.js +++ b/addon/components/paper-card.js @@ -1,4 +1,4 @@ -/* eslint-disable ember/no-classic-components, ember/require-tagless-components */ +/* eslint-disable ember/no-classic-components */ /** * @module ember-paper */ @@ -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 = ''; +}