chore: fix lint
This commit is contained in:
parent
8b4c6aaabc
commit
b6c1ad87e6
|
@ -10,7 +10,6 @@ import i18n from '../../../i18n';
|
|||
import { useAppSelector } from '../../../lib/hooks';
|
||||
import { useEndpointData } from '../../../lib/hooks/useEndpointData';
|
||||
import { hideNotification } from '../../../lib/methods/helpers/notifications';
|
||||
import { useTheme } from '../../../theme';
|
||||
import { CustomIcon } from '../../CustomIcon';
|
||||
import { CallHeader } from '../../CallHeader';
|
||||
import { useStyle } from './style';
|
||||
|
@ -41,7 +40,6 @@ const IncomingCallHeader = React.memo(
|
|||
const isMasterDetail = useAppSelector(state => state.app.isMasterDetail);
|
||||
const styles = useStyle();
|
||||
const insets = useSafeAreaInsets();
|
||||
const { colors } = useTheme();
|
||||
|
||||
return (
|
||||
<View
|
||||
|
|
|
@ -3,7 +3,6 @@ import { View } from 'react-native';
|
|||
import range from 'lodash/range';
|
||||
|
||||
import styles from './styles';
|
||||
import { themes } from '../../../lib/constants';
|
||||
import { useTheme } from '../../../theme';
|
||||
|
||||
const SIZE_EMPTY = 12;
|
||||
|
|
|
@ -9,7 +9,7 @@ import styles from './styles';
|
|||
import Button from './Button';
|
||||
import Dots from './Dots';
|
||||
import { TYPE } from '../constants';
|
||||
import { PASSCODE_LENGTH, themes } from '../../../lib/constants';
|
||||
import { PASSCODE_LENGTH } from '../../../lib/constants';
|
||||
import { useTheme } from '../../../theme';
|
||||
import LockIcon from './LockIcon';
|
||||
import Title from './Title';
|
||||
|
|
|
@ -6,6 +6,11 @@ import { useTheme } from '../../theme';
|
|||
export const RadioButton = ({ check, testID, size }: { check: boolean; testID?: string; size?: number }): React.ReactElement => {
|
||||
const { colors } = useTheme();
|
||||
return (
|
||||
null
|
||||
<RadioButtonUiLib
|
||||
testID={testID}
|
||||
selected={check}
|
||||
size={size || 20}
|
||||
color={check ? colors.buttonBackgroundPrimaryDefault : colors.buttonBackgroundPrimaryDisabled}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -5,7 +5,6 @@ import isEmpty from 'lodash/isEmpty';
|
|||
import Modal from 'react-native-modal';
|
||||
import Touchable from 'react-native-platform-touchable';
|
||||
|
||||
import { useTheme } from '../theme';
|
||||
import { hasNotch } from '../lib/methods/helpers';
|
||||
import { PasscodeChoose } from '../containers/Passcode';
|
||||
import EventEmitter from '../lib/methods/helpers/events';
|
||||
|
@ -33,7 +32,6 @@ const ChangePasscodeView = React.memo(() => {
|
|||
const [visible, setVisible] = useState(false);
|
||||
const [data, setData] = useState<Partial<IArgs>>({});
|
||||
|
||||
const { colors } = useTheme();
|
||||
|
||||
useDeepCompareEffect(() => {
|
||||
if (!isEmpty(data)) {
|
||||
|
|
|
@ -8,7 +8,6 @@ import useDeepCompareEffect from 'use-deep-compare-effect';
|
|||
import { PasscodeEnter } from '../containers/Passcode';
|
||||
import { LOCAL_AUTHENTICATE_EMITTER } from '../lib/constants';
|
||||
import { CustomIcon } from '../containers/CustomIcon';
|
||||
import { useTheme } from '../theme';
|
||||
import { hasNotch } from '../lib/methods/helpers';
|
||||
import EventEmitter from '../lib/methods/helpers/events';
|
||||
|
||||
|
@ -30,7 +29,6 @@ const styles = StyleSheet.create({
|
|||
const ScreenLockedView = (): JSX.Element => {
|
||||
const [visible, setVisible] = useState(false);
|
||||
const [data, setData] = useState<IData>({});
|
||||
const { colors } = useTheme();
|
||||
|
||||
useDeepCompareEffect(() => {
|
||||
if (!isEmpty(data)) {
|
||||
|
|
Loading…
Reference in New Issue