Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
noumantahir committed Oct 22, 2024
1 parent de01bad commit ecb37c1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/components/bottomTabBar/view/bottomTabBarView.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useEffect } from 'react';
import { View, TouchableOpacity, Platform } from 'react-native';
import { View, TouchableOpacity } from 'react-native';

// Components
// import TabBar from './tabbar';
Expand All @@ -9,6 +9,7 @@ import { useDispatch } from 'react-redux';
import { BottomTabBarProps } from '@react-navigation/bottom-tabs';
import { useIntl } from 'react-intl';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { isIphoneX } from 'react-native-iphone-x-helper';
import ROUTES from '../../../constants/routeNames';

// Styles
Expand All @@ -17,7 +18,6 @@ import Icon, { IconContainer } from '../../icon';
import { showReplyModal, updateActiveBottomTab } from '../../../redux/actions/uiAction';
import { useAppSelector } from '../../../hooks';
import showLoginAlert from '../../../utils/showLoginAlert';
import { isIphoneX } from 'react-native-iphone-x-helper';

const BottomTabBarView = ({
state: { routes, index },
Expand Down Expand Up @@ -93,9 +93,9 @@ const BottomTabBarView = ({
);
});

const _bottomPadding = insets.bottom + (isIphoneX() ? 0 : 12)
const _bottomPadding = insets.bottom + (isIphoneX() ? 0 : 12);

return <View style={{ ...styles.wrapper, paddingBottom: _bottomPadding}}>{_tabButtons}</View>;
return <View style={{ ...styles.wrapper, paddingBottom: _bottomPadding }}>{_tabButtons}</View>;
};

export default BottomTabBarView;
4 changes: 2 additions & 2 deletions src/components/header/view/headerStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export default EStyleSheet.create({
flexDirection: 'row',
width: '100%',
backgroundColor: '$primaryBackgroundColor',
paddingTop:8,
paddingBottom:12,
paddingTop: 8,
paddingBottom: 12,
},
containerReverse: {
justifyContent: 'space-between',
Expand Down
4 changes: 2 additions & 2 deletions src/components/header/view/headerView.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import React, { useState } from 'react';
import { View, Text, TouchableOpacity} from 'react-native';
import { View, Text, TouchableOpacity } from 'react-native';
import LinearGradient from 'react-native-linear-gradient';
import { useIntl } from 'react-intl';

// Components
import { useNavigation } from '@react-navigation/native';
import { SafeAreaView } from 'react-native-safe-area-context';
import { SearchModal } from '../../searchModal';
import { IconButton } from '../../iconButton';
import { UserAvatar } from '../../userAvatar';
Expand All @@ -14,7 +15,6 @@ import ROUTES from '../../../constants/routeNames';

// Styles
import styles from './headerStyles';
import { SafeAreaView } from 'react-native-safe-area-context';

const HeaderView = ({
displayName,
Expand Down

0 comments on commit ecb37c1

Please sign in to comment.