From: Lucas Di Pentima Date: Tue, 6 Jul 2021 15:18:51 +0000 (-0300) Subject: 17782: Fixes some of the 'no-unused-vars' compile warnings. X-Git-Tag: 2.2.2~29^2~9 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/2e273c7f58e6fe02ae933e8af68683e093d62806 17782: Fixes some of the 'no-unused-vars' compile warnings. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- diff --git a/src/common/custom-theme.ts b/src/common/custom-theme.ts index d93b37b7..74dee7f6 100644 --- a/src/common/custom-theme.ts +++ b/src/common/custom-theme.ts @@ -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: { diff --git a/src/components/tree/tree.tsx b/src/components/tree/tree.tsx index 1b77b5d9..3ae884b6 100644 --- a/src/components/tree/tree.tsx +++ b/src/components/tree/tree.tsx @@ -202,7 +202,7 @@ const ItemIcon = React.memo(({ type, kind, active, groupClass, classes }: any) = const FlatTree = (props: FlatTreeProps) =>
{ - 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) => { diff --git a/src/views/not-found-panel/not-found-panel.tsx b/src/views/not-found-panel/not-found-panel.tsx index 18df092c..148c331e 100644 --- a/src/views/not-found-panel/not-found-panel.tsx +++ b/src/views/not-found-panel/not-found-panel.tsx @@ -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 {