DEV: glimmerify discourse-root (#17390)

As a result discourse-root will be tag-less
This commit is contained in:
Joffrey JAFFEUX 2022-07-08 13:55:34 +02:00 committed by GitHub
parent 20851f7240
commit 27408c7e14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 10 deletions

View File

@ -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 {}