From bd9625288e17f118dd1c517bef6e3e4ebfa9b77d Mon Sep 17 00:00:00 2001 From: maximallain Date: Tue, 5 Nov 2024 14:06:23 +0100 Subject: [PATCH] fix(notice): put back optional severity --- src/Notice.tsx | 2 +- stories/Notice.stories.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Notice.tsx b/src/Notice.tsx index 7b2f2db52..e90b13ecc 100644 --- a/src/Notice.tsx +++ b/src/Notice.tsx @@ -58,7 +58,7 @@ export namespace NoticeProps { } export type OptionalIcon = { - severity: Exclude; + severity?: Exclude; iconDisplayed?: boolean; }; diff --git a/stories/Notice.stories.tsx b/stories/Notice.stories.tsx index 3ed07d465..337804247 100644 --- a/stories/Notice.stories.tsx +++ b/stories/Notice.stories.tsx @@ -34,7 +34,7 @@ const { meta, getStory } = getStoryFactory({ "cyberattack" ] as const; - assert>(); + assert>(); return severities; })(),