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:
parent
c2f688e980
commit
e931a6e56e
2 changed files with 4 additions and 4 deletions
|
@ -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/>
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
Loading…
Reference in a new issue