Skip to content

Commit

Permalink
Merge pull request #145 from josemarluedke/chore/htmlsafe
Browse files Browse the repository at this point in the history
Import htmlSafe from @ember/template
  • Loading branch information
josemarluedke committed Feb 13, 2021
2 parents 393fdfd + d4d5e0c commit d096ce5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions packages/core/addon/utils/safe-styles.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { htmlSafe } from '@ember/string';
import type { SafeString } from 'handlebars';
import { htmlSafe } from '@ember/template';

export default function safeStyles(
style: Record<string, string | number> | undefined
): SafeString {
): ReturnType<typeof htmlSafe> {
if (!style) {
return htmlSafe('');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { action } from '@ember/object';
import { inject as service } from '@ember/service';
import { htmlSafe } from '@ember/string';
import { htmlSafe } from '@ember/template';
import { NotificationsService, Notification, CustomAction } from '../.';
import { later } from '@ember/runloop';
import { NotificationsContainerArgs } from './notifications-container';
Expand Down

0 comments on commit d096ce5

Please sign in to comment.