DEV: add component for cross-theme compatibility (#18)

This commit is contained in:
Kris 2023-03-28 09:46:53 -04:00 committed by GitHub
parent 8f2225d981
commit 0949a8108a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
/* This component is used in the Category banners theme component */
/* https://meta.discourse.org/t/category-banners/86241 */
import MountWidget from "discourse/components/mount-widget";
export default class CategoryIcon extends MountWidget {
widget = "category-icon";
buildArgs() {
return { category: this.category };
}
didReceiveAttrs() {
super.didReceiveAttrs();
this.queueRerender();
}
}