[ARVADOS-WORKBENCH2] updated: 1.2.0-431-gafa04ca

Git user git at public.curoverse.com
Fri Sep 21 17:46:47 EDT 2018


Summary of changes:
 src/views-components/snackbar/snackbar.tsx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

       via  afa04ca15bcaa890770a30ddb099b62f5cbe2926 (commit)
      from  5e7c7e298eda223e6fcb3876385c59f0552ca642 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit afa04ca15bcaa890770a30ddb099b62f5cbe2926
Author: Daniel Kos <daniel.kos at contractors.roche.com>
Date:   Fri Sep 21 23:46:44 2018 +0200

    Cosmetics..
    
    Arvados-DCO-1.1-Signed-off-by: Daniel Kos <daniel.kos at contractors.roche.com>

diff --git a/src/views-components/snackbar/snackbar.tsx b/src/views-components/snackbar/snackbar.tsx
index c65dc11..59dddca 100644
--- a/src/views-components/snackbar/snackbar.tsx
+++ b/src/views-components/snackbar/snackbar.tsx
@@ -84,7 +84,7 @@ const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
 });
 
 const ArvadosSnackbar = (props: SnackbarDataProps & SnackbarEventProps & WithStyles<CssRules>) => {
-    const { classes, message, onClose, kind } = props;
+    const { classes } = props;
 
     const variants = {
         [SnackbarKind.INFO]: [InfoIcon, classes.info],
@@ -93,7 +93,7 @@ const ArvadosSnackbar = (props: SnackbarDataProps & SnackbarEventProps & WithSty
         [SnackbarKind.ERROR]: [ErrorIcon, classes.error]
     };
 
-    const [Icon, cssClass] = variants[kind];
+    const [Icon, cssClass] = variants[props.kind];
 
     return (
         <MaterialSnackbar
@@ -108,7 +108,7 @@ const ArvadosSnackbar = (props: SnackbarDataProps & SnackbarEventProps & WithSty
                 message={
                     <span id="client-snackbar" className={classes.message}>
                         <Icon className={classNames(classes.icon, classes.iconVariant)}/>
-                        {message}
+                        {props.message}
                     </span>
                 }
                 action={
@@ -116,7 +116,7 @@ const ArvadosSnackbar = (props: SnackbarDataProps & SnackbarEventProps & WithSty
                         key="close"
                         aria-label="Close"
                         color="inherit"
-                        onClick={e => onClose && onClose(e, '')}>
+                        onClick={e => props.onClose && props.onClose(e, '')}>
                         <CloseIcon className={classes.icon}/>
                     </IconButton>
                 }

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list