Skip to content

Commit

Permalink
feat(toolbox/native): fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Calinteodor committed Dec 11, 2024
1 parent 5eb77f8 commit 7217b97
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions react/features/toolbox/components/native/CustomOptionButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ interface IProps extends AbstractButtonProps {
backgroundColor?: string;
icon: any;
id?: string;
text: string;
imageTintColor: string;
text: string;
}

/**
Expand All @@ -23,11 +23,11 @@ interface IProps extends AbstractButtonProps {
* @returns {Component}
*/
class CustomOptionButton extends AbstractButton<IProps> {
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.
Expand All @@ -46,16 +46,14 @@ class CustomOptionButton extends AbstractButton<IProps> {
= (
<SvgCssUri
style = { styles.iconImageStyles }
uri = { this.iconSrc } />
);
uri = { this.iconSrc } />);
} else {
iconComponent
= (
<Image
source = {{ uri: this.iconSrc }}
style = { styles.iconImageStyles }
tintColor = { this.imageTintColor } />
);
tintColor = { this.imageTintColor } />);
}

return iconComponent;
Expand Down

0 comments on commit 7217b97

Please sign in to comment.