X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/64b25cb874d430f23d169606265c9534a52bdc6c..2ef3823ee2205b76af73f3fa4440395bdb3aac5d:/src/views-components/snackbar/snackbar.tsx?ds=sidebyside

diff --git a/src/views-components/snackbar/snackbar.tsx b/src/views-components/snackbar/snackbar.tsx
index f3149e63..c5d0f483 100644
--- a/src/views-components/snackbar/snackbar.tsx
+++ b/src/views-components/snackbar/snackbar.tsx
@@ -9,7 +9,7 @@ import { RootState } from "~/store/store";
 import { Button, IconButton, StyleRulesCallback, WithStyles, withStyles, SnackbarContent } from '@material-ui/core';
 import MaterialSnackbar, { SnackbarOrigin } from "@material-ui/core/Snackbar";
 import { snackbarActions, SnackbarKind } from "~/store/snackbar/snackbar-actions";
-import { navigateToProject } from '~/store/navigation/navigation-action';
+import { navigateTo } from '~/store/navigation/navigation-action';
 import WarningIcon from '@material-ui/icons/Warning';
 import CheckCircleIcon from '@material-ui/icons/CheckCircle';
 import ErrorIcon from '@material-ui/icons/Error';
@@ -56,7 +56,7 @@ const mapDispatchToProps = (dispatch: Dispatch): SnackbarEventProps => ({
         dispatch(snackbarActions.SHIFT_MESSAGES());
     },
     onClick: (uuid: string) => {
-        dispatch(navigateToProject(uuid));
+        dispatch<any>(navigateTo(uuid));
     }
 });
 
@@ -70,7 +70,7 @@ const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
         backgroundColor: theme.palette.error.dark
     },
     info: {
-        backgroundColor: theme.palette.primary.dark
+        backgroundColor: theme.palette.primary.main
     },
     warning: {
         backgroundColor: amber[700]
@@ -121,7 +121,7 @@ export const Snackbar = withStyles(styles)(connect(mapStateToProps, mapDispatchT
                     aria-describedby="client-snackbar"
                     message={
                         <span id="client-snackbar" className={classes.message}>
-                            <Icon className={classNames(classes.icon, classes.iconVariant)}/>
+                            <Icon className={classNames(classes.icon, classes.iconVariant)} />
                             {props.message}
                         </span>
                     }
@@ -150,7 +150,7 @@ const actions = (props: SnackbarProps) => {
                 size="small"
                 color="inherit"
                 className={classes.linkButton}
-                onClick={() => onClick(link) }>
+                onClick={() => onClick(link)}>
                 Go To
             </Button>
         );
