apply comments

This commit is contained in:
Samira Mokaram
2020-09-23 17:13:22 +02:00
parent 67d205cf48
commit e0102ec73a
2 changed files with 7 additions and 11 deletions
@@ -50,9 +50,9 @@ const useStyles = makeStyles((theme: BackstageTheme) => ({
message: {
display: 'flex',
alignItems: 'center',
color: theme.palette.banner.textColor,
color: theme.palette.banner.text,
'& a': {
color: theme.palette.banner.linkColor,
color: theme.palette.banner.link,
},
},
info: {
@@ -70,12 +70,12 @@ type Props = {
fixed?: boolean;
};
export const DismissableBanner: FC<Props> = ({
export const DismissableBanner = ({
variant,
message,
id,
fixed = false,
}) => {
}: Props) => {
const classes = useStyles();
const storageApi = useApi(storageApiRef);
const notificationsStore = storageApi.forBucket('notifications');
@@ -109,11 +109,7 @@ export const DismissableBanner: FC<Props> = ({
: { vertical: 'top', horizontal: 'center' }
}
open={!dismissedBanners.has(id)}
classes={
fixed
? { root: classes.root }
: { root: classNames(classes.topPosition, classes.root) }
}
classes={{ root: classNames(classes.root, fixed && classes.topPosition) }}
>
<SnackbarContent
classes={{
+2 -2
View File
@@ -64,8 +64,8 @@ type PaletteAdditions = {
banner: {
info: string;
error: string;
textColor: string;
linkColor: string;
text: string;
link: string;
};
};