Skip to content

Commit

Permalink
feat(base/ui): fixed linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Calinteodor committed Aug 9, 2024
1 parent 1edfe10 commit 54a9c85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion react/features/base/ui/components/native/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import BaseTheme from '../BaseTheme.native';
import { IButtonProps } from '../types';

import styles from './buttonStyles';

Check failure on line 10 in react/features/base/ui/components/native/Button.tsx

View workflow job for this annotation

GitHub Actions / Lint

There should be at least one empty line between import groups
import {IconSource} from "react-native-paper/lib/typescript/components/Icon";

Check failure on line 11 in react/features/base/ui/components/native/Button.tsx

View workflow job for this annotation

GitHub Actions / Lint

`react-native-paper/lib/typescript/components/Icon` import should occur before import of `../../constants.native`

Check failure on line 11 in react/features/base/ui/components/native/Button.tsx

View workflow job for this annotation

GitHub Actions / Lint

A space is required after '{'

Check failure on line 11 in react/features/base/ui/components/native/Button.tsx

View workflow job for this annotation

GitHub Actions / Lint

A space is required before '}'

Check failure on line 11 in react/features/base/ui/components/native/Button.tsx

View workflow job for this annotation

GitHub Actions / Lint

Strings must use singlequote


export interface IProps extends IButtonProps {
Expand Down Expand Up @@ -101,7 +102,7 @@ const Button: React.FC<IProps> = ({
contentStyle
] as StyleProp<object> }
disabled = { disabled }
icon = { icon }
icon = { icon as IconSource | undefined }
id = { id }
labelStyle = { [
buttonLabelStyles,
Expand Down
2 changes: 1 addition & 1 deletion react/features/base/ui/components/native/Switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const Switch = ({
onValueChange = { onChange }
style = { style as StyleProp<object> }
thumbColor = { thumbColor }
trackColor = { trackColor as ColorValue }
trackColor = { trackColor }
value = { checked } />
);

Expand Down

0 comments on commit 54a9c85

Please sign in to comment.