[arvados-workbench2] updated: 2.7.0-236-g25667ac4

git repository hosting git at public.arvados.org
Wed Nov 15 20:48:35 UTC 2023


Summary of changes:
 src/views-components/side-panel/side-panel-collapsed.tsx | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

       via  25667ac485387b286faa5c5e4a6bb96231dddf20 (commit)
      from  8228d441690ed78340e1a44f3e0bf8b4f94215a0 (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 25667ac485387b286faa5c5e4a6bb96231dddf20
Author: Lisa Knox <lisaknox83 at gmail.com>
Date:   Wed Nov 15 15:48:28 2023 -0500

    19302: redefined collapsed panel props Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>

diff --git a/src/views-components/side-panel/side-panel-collapsed.tsx b/src/views-components/side-panel/side-panel-collapsed.tsx
index 18e4df25..cbfd285d 100644
--- a/src/views-components/side-panel/side-panel-collapsed.tsx
+++ b/src/views-components/side-panel/side-panel-collapsed.tsx
@@ -22,6 +22,7 @@ import {
 } from 'store/navigation/navigation-action'
 import { navigateToUserVirtualMachines } from 'store/navigation/navigation-action'
 import { RouterAction } from 'react-router-redux'
+import { User } from 'models/user'
 
 type CssRules = 'button' | 'unselected' | 'selected'
 
@@ -101,6 +102,13 @@ const sidePanelCollapsedCategories: TCollapsedCategory[] = [
     },
 ]
 
+type SidePanelCollapsedProps = {
+    user: User,
+    selectedPath: string,
+    navToHome: (uuid: string)=>void,
+    navTo: (navTarget: RouterAction | '')=>void,
+}
+
 const mapStateToProps = ({auth, properties }: RootState) => {
         return {
             user: auth.user,
@@ -120,7 +128,7 @@ const mapDispatchToProps = (dispatch: Dispatch) => {
 }
 
 export const SidePanelCollapsed = withStyles(styles)(
-    connect(mapStateToProps, mapDispatchToProps)(({ classes, user, selectedPath, navToHome, navTo }: WithStyles & any) => {
+    connect(mapStateToProps, mapDispatchToProps)(({ classes, user, selectedPath, navToHome, navTo }: WithStyles & SidePanelCollapsedProps) => {
 
         const handleClick = (cat: TCollapsedCategory) => {
             if (cat.name === SidePanelCollapsedCategory.PROJECTS) navToHome(user.uuid)
@@ -129,9 +137,8 @@ export const SidePanelCollapsed = withStyles(styles)(
 
         const { button, unselected, selected } = classes
         return (
-            <List data-cy="side-panel-collapsed">
+            <List data-cy='side-panel-collapsed'>
                 {sidePanelCollapsedCategories.map((cat) => (
-                    
                     <ListItem
                         key={cat.name}
                         data-cy={`collapsed-${cat.name.toLowerCase().replace(/\s+/g, '-')}`}
@@ -147,6 +154,6 @@ export const SidePanelCollapsed = withStyles(styles)(
                     </ListItem>
                 ))}
             </List>
-        )
+        );
     })
 )

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list