From 7217b97ba28cff59d5821eb37c7a662c66dd7000 Mon Sep 17 00:00:00 2001 From: Calin-Teodor Date: Wed, 11 Dec 2024 16:31:21 +0200 Subject: [PATCH] feat(toolbox/native): fix linter --- .../toolbox/components/native/CustomOptionButton.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/react/features/toolbox/components/native/CustomOptionButton.tsx b/react/features/toolbox/components/native/CustomOptionButton.tsx index 6be205e6222d..24992055754b 100644 --- a/react/features/toolbox/components/native/CustomOptionButton.tsx +++ b/react/features/toolbox/components/native/CustomOptionButton.tsx @@ -13,8 +13,8 @@ interface IProps extends AbstractButtonProps { backgroundColor?: string; icon: any; id?: string; - text: string; imageTintColor: string; + text: string; } /** @@ -23,11 +23,11 @@ interface IProps extends AbstractButtonProps { * @returns {Component} */ class CustomOptionButton extends AbstractButton { + backgroundColor = this.props.backgroundColor; iconSrc = this.props.icon; - imageTintColor = this.props.imageTintColor; id = this.props.id; + imageTintColor = this.props.imageTintColor; text = this.props.text; - backgroundColor = this.props.backgroundColor; /** * Custom icon component. @@ -46,16 +46,14 @@ class CustomOptionButton extends AbstractButton { = ( - ); + uri = { this.iconSrc } />); } else { iconComponent = ( - ); + tintColor = { this.imageTintColor } />); } return iconComponent;