Use dasherize instead of replace

Use dasherize instead of replace

diff --git a/app/assets/javascripts/discourse/widgets/user-notifications-large.js.es6 b/app/assets/javascripts/discourse/widgets/user-notifications-large.js.es6
index c0797bb..f94e174 100644
--- a/app/assets/javascripts/discourse/widgets/user-notifications-large.js.es6
+++ b/app/assets/javascripts/discourse/widgets/user-notifications-large.js.es6
@@ -16,7 +16,7 @@ createWidget("large-notification-item", {
       this.site.notificationLookup[attrs.notification_type];
 
     const widgetNames = [
-      `${notificationName.replace(/_/g, '-')}-notification-item`,
+      `${notificationName.dasherize()}-notification-item`,
       "default-notification-item"
     ];
 
diff --git a/app/assets/javascripts/discourse/widgets/user-notifications.js.es6 b/app/assets/javascripts/discourse/widgets/user-notifications.js.es6
index e487b6e..009fefe 100644
--- a/app/assets/javascripts/discourse/widgets/user-notifications.js.es6
+++ b/app/assets/javascripts/discourse/widgets/user-notifications.js.es6
@@ -95,7 +95,7 @@ export default createWidget("user-notifications", {
             this.site.notificationLookup[notificationAttrs.notification_type];
 
           const widgetNames = [
-            `${notificationName.replace(/_/g, '-')}-notification-item`,
+            `${notificationName.dasherize()}-notification-item`,
             "default-notification-item"
           ];

GitHub sha: 37b8f5d9