Webapp Linter Fixes - fix no-explicit-any warnings in options.tsx, workspaceOptions.tsx (#1427)

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
Fares Rihani 2021-10-04 15:05:28 -04:00 committed by GitHub
parent c2f688e980
commit e931a6e56e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@
// See LICENSE.txt for license information. // See LICENSE.txt for license information.
import React from 'react' import React from 'react'
import Select, {components} from 'react-select' import Select, {components, IndicatorProps} from 'react-select'
import {CSSObject} from '@emotion/serialize' import {CSSObject} from '@emotion/serialize'
@ -76,7 +76,7 @@ const styles = {
}), }),
} }
const DropdownIndicator = (props: any) => { const DropdownIndicator = (props: IndicatorProps<Option, false>) => {
return ( return (
<components.DropdownIndicator {...props}> <components.DropdownIndicator {...props}>
<ChevronUp/> <ChevronUp/>

View file

@ -2,7 +2,7 @@
// See LICENSE.txt for license information. // See LICENSE.txt for license information.
import React from 'react' import React from 'react'
import Select from 'react-select' import Select, {OptionProps} from 'react-select'
import {FormattedMessage, useIntl} from 'react-intl' import {FormattedMessage, useIntl} from 'react-intl'
import {UserWorkspace} from '../../user' import {UserWorkspace} from '../../user'
@ -86,7 +86,7 @@ const WorkspaceOptions = (props: Props): JSX.Element => {
) )
} }
const Option = (props: any): JSX.Element => { const Option = (props: OptionProps<typeof DashboardOption, false>): JSX.Element => {
const {innerProps, innerRef} = props const {innerProps, innerRef} = props
return ( return (