From 27408c7e14b11ca234ec57e59fa1f575295fb79f Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Fri, 8 Jul 2022 13:55:34 +0200 Subject: [PATCH] DEV: glimmerify discourse-root (#17390) As a result discourse-root will be tag-less --- .../discourse/app/components/discourse-root.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/discourse-root.js b/app/assets/javascripts/discourse/app/components/discourse-root.js index e3d691f0531..c2f2f9add5c 100644 --- a/app/assets/javascripts/discourse/app/components/discourse-root.js +++ b/app/assets/javascripts/discourse/app/components/discourse-root.js @@ -1,11 +1,3 @@ -import Component from "@ember/component"; +import GlimmerComponent from "discourse/components/glimmer"; -let componentArgs = { tagName: "div" }; - -// TODO: Once we've moved to Ember CLI completely we can remove this block -// eslint-disable-next-line no-undef -if (!Ember.FEATURES.EMBER_GLIMMER_SET_COMPONENT_TEMPLATE) { - componentArgs = { tagName: "" }; -} - -export default Component.extend(componentArgs); +export default class DiscourseRoot extends GlimmerComponent {}