From 54a9c85c5e6cefbc46b542143ef294331a62aaa8 Mon Sep 17 00:00:00 2001 From: Calin-Teodor Date: Fri, 9 Aug 2024 17:30:14 +0300 Subject: [PATCH] feat(base/ui): fixed linter --- react/features/base/ui/components/native/Button.tsx | 3 ++- react/features/base/ui/components/native/Switch.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/react/features/base/ui/components/native/Button.tsx b/react/features/base/ui/components/native/Button.tsx index 623e345b7e3..4525ffa7bea 100644 --- a/react/features/base/ui/components/native/Button.tsx +++ b/react/features/base/ui/components/native/Button.tsx @@ -8,6 +8,7 @@ import BaseTheme from '../BaseTheme.native'; import { IButtonProps } from '../types'; import styles from './buttonStyles'; +import {IconSource} from "react-native-paper/lib/typescript/components/Icon"; export interface IProps extends IButtonProps { @@ -101,7 +102,7 @@ const Button: React.FC = ({ contentStyle ] as StyleProp } disabled = { disabled } - icon = { icon } + icon = { icon as IconSource | undefined } id = { id } labelStyle = { [ buttonLabelStyles, diff --git a/react/features/base/ui/components/native/Switch.tsx b/react/features/base/ui/components/native/Switch.tsx index 741362fc065..f4717363b50 100644 --- a/react/features/base/ui/components/native/Switch.tsx +++ b/react/features/base/ui/components/native/Switch.tsx @@ -53,7 +53,7 @@ const Switch = ({ onValueChange = { onChange } style = { style as StyleProp } thumbColor = { thumbColor } - trackColor = { trackColor as ColorValue } + trackColor = { trackColor } value = { checked } /> );