Skip to content

Commit

Permalink
refactor: use event constant
Browse files Browse the repository at this point in the history
  • Loading branch information
jeripeierSBB committed Nov 27, 2023
1 parent 34f33e4 commit c1b2d82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/notification/notification.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const notification = (args: Args): TemplateResult => html`
${ref(
(notification?: Element) =>
(notification as SbbNotification)?.addEventListener(
'didOpen',
SbbNotification.events.didOpen,
() => ((notification as SbbNotification).disableAnimation = args['disable-animation']),
{ once: true },
),
Expand Down Expand Up @@ -126,7 +126,7 @@ const SlottedTitleTemplate = (args: Args): TemplateResult => html`
${ref(
(notification?: Element) =>
(notification as SbbNotification)?.addEventListener(
'didOpen',
SbbNotification.events.didOpen,
() => ((notification as SbbNotification).disableAnimation = args['disable-animation']),
{ once: true },
),
Expand Down

0 comments on commit c1b2d82

Please sign in to comment.