Make theme banner warning color optional
Signed-off-by: Tim Hansen <timbonicus@gmail.com>
This commit is contained in:
@@ -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' },
|
||||
|
||||
@@ -76,7 +76,7 @@ export type BackstagePaletteAdditions = {
|
||||
error: string;
|
||||
text: string;
|
||||
link: string;
|
||||
warning: string;
|
||||
warning?: string;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user