From e931a6e56e75f76582712ed9f0dbb43b0a8c7c17 Mon Sep 17 00:00:00 2001 From: Fares Rihani Date: Mon, 4 Oct 2021 15:05:28 -0400 Subject: [PATCH] Webapp Linter Fixes - fix no-explicit-any warnings in options.tsx, workspaceOptions.tsx (#1427) Co-authored-by: Mattermod --- webapp/src/components/calculations/options.tsx | 4 ++-- webapp/src/components/workspaceSwitcher/workspaceOptions.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/webapp/src/components/calculations/options.tsx b/webapp/src/components/calculations/options.tsx index e42b399f0..bc3a36a4e 100644 --- a/webapp/src/components/calculations/options.tsx +++ b/webapp/src/components/calculations/options.tsx @@ -2,7 +2,7 @@ // See LICENSE.txt for license information. import React from 'react' -import Select, {components} from 'react-select' +import Select, {components, IndicatorProps} from 'react-select' import {CSSObject} from '@emotion/serialize' @@ -76,7 +76,7 @@ const styles = { }), } -const DropdownIndicator = (props: any) => { +const DropdownIndicator = (props: IndicatorProps) => { return ( diff --git a/webapp/src/components/workspaceSwitcher/workspaceOptions.tsx b/webapp/src/components/workspaceSwitcher/workspaceOptions.tsx index 38ffa3906..671931a9c 100644 --- a/webapp/src/components/workspaceSwitcher/workspaceOptions.tsx +++ b/webapp/src/components/workspaceSwitcher/workspaceOptions.tsx @@ -2,7 +2,7 @@ // See LICENSE.txt for license information. import React from 'react' -import Select from 'react-select' +import Select, {OptionProps} from 'react-select' import {FormattedMessage, useIntl} from 'react-intl' import {UserWorkspace} from '../../user' @@ -86,7 +86,7 @@ const WorkspaceOptions = (props: Props): JSX.Element => { ) } -const Option = (props: any): JSX.Element => { +const Option = (props: OptionProps): JSX.Element => { const {innerProps, innerRef} = props return (