From 6ac15527cf88be61355974ea8f721655730da283 Mon Sep 17 00:00:00 2001 From: Nils Date: Thu, 26 Sep 2024 09:12:56 +0200 Subject: [PATCH] move banner over to composition api --- .../mt-banner.interactive.stories.ts | 2 +- .../mt-banner/mt-banner.vue | 147 +++++------------- 2 files changed, 42 insertions(+), 107 deletions(-) diff --git a/packages/component-library/src/components/feedback-indicator/mt-banner/mt-banner.interactive.stories.ts b/packages/component-library/src/components/feedback-indicator/mt-banner/mt-banner.interactive.stories.ts index d5756016e..239ee6c10 100644 --- a/packages/component-library/src/components/feedback-indicator/mt-banner/mt-banner.interactive.stories.ts +++ b/packages/component-library/src/components/feedback-indicator/mt-banner/mt-banner.interactive.stories.ts @@ -66,6 +66,6 @@ export const VisualTestCloseBannerBox: MtBannerStory = { await userEvent.click(canvas.getByRole("button")); - expect(args.close).toHaveBeenCalledWith(null); + expect(args.close).toHaveBeenCalledOnce(); }, }; diff --git a/packages/component-library/src/components/feedback-indicator/mt-banner/mt-banner.vue b/packages/component-library/src/components/feedback-indicator/mt-banner/mt-banner.vue index 039d3a2cc..11bdf58e7 100644 --- a/packages/component-library/src/components/feedback-indicator/mt-banner/mt-banner.vue +++ b/packages/component-library/src/components/feedback-indicator/mt-banner/mt-banner.vue @@ -1,5 +1,5 @@ -