[arvados] updated: 2.7.0-5799-gbfa2055c41
git repository hosting
git at public.arvados.org
Thu Jan 11 16:02:07 UTC 2024
Summary of changes:
.../ms-toolbar-overflow-wrapper.tsx | 47 ++++++++++++----------
1 file changed, 25 insertions(+), 22 deletions(-)
via bfa2055c4184c1fe7d56936cf5af4d57cc6fcb22 (commit)
from f86952003527ad917fa3c9106a90a6075d8b2dde (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 bfa2055c4184c1fe7d56936cf5af4d57cc6fcb22
Author: Lisa Knox <lisaknox83 at gmail.com>
Date: Thu Jan 11 11:02:04 2024 -0500
21317: cleanup Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>
diff --git a/services/workbench2/src/components/multiselect-toolbar/ms-toolbar-overflow-wrapper.tsx b/services/workbench2/src/components/multiselect-toolbar/ms-toolbar-overflow-wrapper.tsx
index 94a34c72e5..de1acf1eea 100644
--- a/services/workbench2/src/components/multiselect-toolbar/ms-toolbar-overflow-wrapper.tsx
+++ b/services/workbench2/src/components/multiselect-toolbar/ms-toolbar-overflow-wrapper.tsx
@@ -2,11 +2,11 @@
//
// SPDX-License-Identifier: AGPL-3.0
-import React, { useState, useRef, useEffect , ReactElement, JSXElementConstructor} from 'react';
+import React, { useState, useRef, useEffect } from 'react';
import { StyleRulesCallback, WithStyles, withStyles } from '@material-ui/core';
-import classnames from 'classnames'
+import classnames from 'classnames';
import { ArvadosTheme } from 'common/custom-theme';
-import { OverflowMenu, OverflowChild} from './ms-toolbar-overflow-menu';
+import { OverflowMenu, OverflowChild } from './ms-toolbar-overflow-menu';
type CssRules = 'visible' | 'inVisible' | 'toolbarWrapper' | 'overflowStyle';
@@ -36,11 +36,11 @@ const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
});
type WrapperProps = {
- children: OverflowChild[]
-}
+ children: OverflowChild[];
+};
export const IntersectionObserverWrapper = withStyles(styles)((props: WrapperProps & WithStyles<CssRules>) => {
- const { classes, children} = props
+ const { classes, children } = props;
const navRef = useRef<any>(null);
const [visibilityMap, setVisibilityMap] = useState({});
@@ -82,21 +82,24 @@ export const IntersectionObserverWrapper = withStyles(styles)((props: WrapperPro
}, []);
return (
- <div className={classes.toolbarWrapper} ref={navRef}>
- {React.Children.map(children, (child) => {
- return React.cloneElement(child, {
- className: classnames(child.props.className, {
- [classes.visible]: !!visibilityMap[child.props["data-targetid"]],
- [classes.inVisible]: !visibilityMap[child.props["data-targetid"]]
- })
- });
- })}
- <OverflowMenu
- visibilityMap={visibilityMap}
- className={classes.overflowStyle}
- >
- {children}
- </OverflowMenu>
- </div>
+ <div
+ className={classes.toolbarWrapper}
+ ref={navRef}
+ >
+ {React.Children.map(children, (child) => {
+ return React.cloneElement(child, {
+ className: classnames(child.props.className, {
+ [classes.visible]: !!visibilityMap[child.props['data-targetid']],
+ [classes.inVisible]: !visibilityMap[child.props['data-targetid']],
+ }),
+ });
+ })}
+ <OverflowMenu
+ visibilityMap={visibilityMap}
+ className={classes.overflowStyle}
+ >
+ {children}
+ </OverflowMenu>
+ </div>
);
});
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list