Make theme banner warning color optional

Signed-off-by: Tim Hansen <timbonicus@gmail.com>
This commit is contained in:
Tim Hansen
2021-10-29 13:39:35 -06:00
parent c3cb126a9d
commit e9206f437c
2 changed files with 3 additions and 2 deletions
@@ -80,7 +80,8 @@ const useStyles = makeStyles(
backgroundColor: theme.palette.banner.error,
},
warning: {
backgroundColor: theme.palette.banner.warning,
backgroundColor:
theme.palette.banner.warning ?? theme.palette.banner.error,
},
}),
{ name: 'BackstageDismissableBanner' },
+1 -1
View File
@@ -76,7 +76,7 @@ export type BackstagePaletteAdditions = {
error: string;
text: string;
link: string;
warning: string;
warning?: string;
};
};