Skip to content

Commit

Permalink
fix(notice): put back optional severity
Browse files Browse the repository at this point in the history
  • Loading branch information
maximallain committed Nov 13, 2024
1 parent ca6528f commit bd96252
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Notice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export namespace NoticeProps {
}

export type OptionalIcon = {
severity: Exclude<Severity, RiskyAlertSeverity | WeatherSeverity>;
severity?: Exclude<Severity, RiskyAlertSeverity | WeatherSeverity>;
iconDisplayed?: boolean;
};

Expand Down
2 changes: 1 addition & 1 deletion stories/Notice.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const { meta, getStory } = getStoryFactory<NoticeProps>({
"cyberattack"
] as const;

assert<Equals<typeof severities[number], NoticeProps["severity"]>>();
assert<Equals<typeof severities[number] | undefined, NoticeProps["severity"]>>();

return severities;
})(),
Expand Down

0 comments on commit bd96252

Please sign in to comment.