From a56d7fd8c5f0f0b910c21bbd8800232b5ff7041b Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Thu, 24 Sep 2020 13:26:16 -0400 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20convert=20notificati?= =?UTF-8?q?on=20component=20to=20nested=20structure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rose/notification/index.hbs} | 0 .../{notification.js => notification/index.js} | 18 +++++------------- .../index.stories.mdx} | 0 3 files changed, 5 insertions(+), 13 deletions(-) rename addons/rose/addon/{templates/components/rose/notification.hbs => components/rose/notification/index.hbs} (100%) rename addons/rose/addon/components/rose/{notification.js => notification/index.js} (53%) rename addons/rose/addon/components/rose/{notification.stories.mdx => notification/index.stories.mdx} (100%) diff --git a/addons/rose/addon/templates/components/rose/notification.hbs b/addons/rose/addon/components/rose/notification/index.hbs similarity index 100% rename from addons/rose/addon/templates/components/rose/notification.hbs rename to addons/rose/addon/components/rose/notification/index.hbs diff --git a/addons/rose/addon/components/rose/notification.js b/addons/rose/addon/components/rose/notification/index.js similarity index 53% rename from addons/rose/addon/components/rose/notification.js rename to addons/rose/addon/components/rose/notification/index.js index 1b1677a67..c27d54f9b 100644 --- a/addons/rose/addon/components/rose/notification.js +++ b/addons/rose/addon/components/rose/notification/index.js @@ -1,16 +1,7 @@ -import Component from '@ember/component'; -import layout from '../../templates/components/rose/notification'; +import Component from '@glimmer/component'; import { computed } from '@ember/object'; -/** - * An accessible alert notification component that displays an icon, - * a heading, and optional block content. Notifications may be static or - * dismissible. To make a notification dismissible, pass in a - * `@dismiss` function. - */ -export default Component.extend({ - layout, - tagName: '', +export default class RoseNotificationComponent extends Component { /** * Returns an icon name based on the notification style. @@ -33,5 +24,6 @@ export default Component.extend({ } return icon; - }, -}); + } + +} diff --git a/addons/rose/addon/components/rose/notification.stories.mdx b/addons/rose/addon/components/rose/notification/index.stories.mdx similarity index 100% rename from addons/rose/addon/components/rose/notification.stories.mdx rename to addons/rose/addon/components/rose/notification/index.stories.mdx