17782: Fixes some of the 'no-unused-vars' compile warnings.
authorLucas Di Pentima <lucas.dipentima@curii.com>
Tue, 6 Jul 2021 15:18:51 +0000 (12:18 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Tue, 6 Jul 2021 15:18:51 +0000 (12:18 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>

src/common/custom-theme.ts
src/components/tree/tree.tsx
src/views/not-found-panel/not-found-panel.tsx

index d93b37b79b9c2de27e92b2a565012711a85de68e..74dee7f6c9cec71047ad0373162b5d10dc6786d1 100644 (file)
@@ -4,7 +4,6 @@
 
 import { createMuiTheme } from '@material-ui/core/styles';
 import { ThemeOptions, Theme } from '@material-ui/core/styles/createMuiTheme';
-import purple from '@material-ui/core/colors/purple';
 import blue from '@material-ui/core/colors/blue';
 import grey from '@material-ui/core/colors/grey';
 import green from '@material-ui/core/colors/green';
@@ -31,12 +30,9 @@ interface Colors {
 }
 
 const arvadosPurple = '#361336';
-const purple800 = purple["800"];
-const grey500 = grey["500"];
 const grey600 = grey["600"];
 const grey700 = grey["700"];
 const grey900 = grey["900"];
-const rocheBlue = '#06C';
 
 export const themeOptions: ArvadosThemeOptions = {
     typography: {
index 1b77b5d9d57726e66d149a3494ac92d1becc4f08..3ae884b67cb1e6e51e452ea6e68df0155be7cc1b 100644 (file)
@@ -202,7 +202,7 @@ const ItemIcon = React.memo(({ type, kind, active, groupClass, classes }: any) =
 const FlatTree = (props: FlatTreeProps) =>
     <div
         onContextMenu={(event) => {
-            const [action, id] = getActionAndId(event, FLAT_TREE_ACTIONS.contextMenu);
+            const id = getActionAndId(event, FLAT_TREE_ACTIONS.contextMenu)[1];
             props.onContextMenu(event, { id } as any);
         }}
         onClick={(event) => {
index 18df092c34787966fefab279b3fdbd52922e02ab..148c331e2971b91ee826ca92a9a1f57b2ba8f312 100644 (file)
@@ -4,7 +4,7 @@
 
 import { RootState } from 'store/store';
 import { connect } from 'react-redux';
-import { NotFoundPanelRoot, NotFoundPanelRootDataProps, NotFoundPanelOwnProps } from 'views/not-found-panel/not-found-panel-root';
+import { NotFoundPanelRoot, NotFoundPanelRootDataProps } from 'views/not-found-panel/not-found-panel-root';
 
 const mapStateToProps = (state: RootState): NotFoundPanelRootDataProps => {
     return {