Skip to content

Commit e542884

Browse files
committed
[workflow/test] Fixing the sonar issue
1 parent 5c7e54c commit e542884

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/packages/react-native-material-elements/src/components/TextField/Input.types.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { BaseStyles } from '../../libraries/style/styleTypes';
1515
import { Theme } from '../../libraries/themes/theme';
1616
import { BoxProps } from '../Box/Box.types';
1717
import { TextProps } from '../Typography/Text.types';
18+
import { OTPInputProps } from './OtpInput';
1819

1920
/**
2021
* Represents the variation options for a text field.
@@ -227,3 +228,9 @@ export interface LabelTextStylesProps
227228
export interface BaseInputStylesProps extends Pick<BaseInputProps, 'variant' | 'height'> {
228229
colors: Theme;
229230
}
231+
232+
export interface GetOtpInputStylesParams
233+
extends Pick<OTPInputProps, 'length' | 'variant' | 'square' | 'error' | 'tintColor' | 'offTintColor'> {
234+
colors: Theme;
235+
isFocused?: boolean;
236+
}

src/packages/react-native-material-elements/src/components/TextField/OtpInput.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
ViewStyle,
1212
} from 'react-native';
1313
import { useThemeColorsSelector } from '../../libraries';
14-
import { Theme } from '../../libraries/types';
1514
import { VariantTypes } from '../../utils';
1615
import { getOtpInputStyles } from './TextField.style';
1716

@@ -68,12 +67,6 @@ export type OTPInputProps = Omit<TextInputProps, 'onChange' | 'value' | 'onChang
6867
defaultValue?: number | string;
6968
};
7069

71-
export interface GetOtpInputStylesParams
72-
extends Pick<OTPInputProps, 'length' | 'variant' | 'square' | 'error' | 'tintColor' | 'offTintColor'> {
73-
colors: Theme;
74-
isFocused?: boolean;
75-
}
76-
7770
export const OTPInput: React.FC<OTPInputProps> = ({
7871
length,
7972
onChange,

src/packages/react-native-material-elements/src/components/TextField/TextField.style.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ import {
1111
import { GetIconInputStyles } from './IconInput';
1212
import {
1313
BaseInputStylesProps,
14+
GetOtpInputStylesParams,
1415
LabelTextStylesProps,
1516
LabelTransformStyleProps,
1617
OutlineStyles,
1718
TextFiledVariation,
1819
TextInputStylesProps,
1920
} from './Input.types';
20-
import { GetOtpInputStylesParams } from './OtpInput';
2121

2222
const baseInputDefaultStyles: ViewStyle = {
2323
position: 'relative',

0 commit comments

Comments
 (0)