diff options
author | Ivan Chen <ivan@tagg.id> | 2021-06-08 11:33:13 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-06-08 16:18:34 -0400 |
commit | 96a80c53fcc0b5815b56f0ed0b48d152a6c6e2a4 (patch) | |
tree | bca9978f712bda697149d80cd9f9c65967d86d9e | |
parent | 47cde91048371301a17e072b8ec02861be563860 (diff) |
Cleanup linter warnings
-rw-r--r-- | src/components/moments/MomentPost.tsx | 6 | ||||
-rw-r--r-- | src/components/moments/MomentPostContent.tsx | 1 | ||||
-rw-r--r-- | src/routes/main/MainStackScreen.tsx | 1 |
3 files changed, 2 insertions, 6 deletions
diff --git a/src/components/moments/MomentPost.tsx b/src/components/moments/MomentPost.tsx index b97b8034..1f363052 100644 --- a/src/components/moments/MomentPost.tsx +++ b/src/components/moments/MomentPost.tsx @@ -1,11 +1,11 @@ import React, {useEffect, useState} from 'react'; -import {StyleSheet, View} from 'react-native'; +import {StyleSheet} from 'react-native'; import {useSelector} from 'react-redux'; import {MomentPostContent, MomentPostHeader} from '.'; import {deleteMomentTag, loadMomentTags} from '../../services'; import {RootState} from '../../store/rootReducer'; import {MomentTagType, MomentType, ScreenType} from '../../types'; -import {SCREEN_HEIGHT, SCREEN_WIDTH, StatusBarHeight} from '../../utils'; +import {SCREEN_HEIGHT} from '../../utils'; interface MomentPostProps { item: MomentType; @@ -13,8 +13,6 @@ interface MomentPostProps { screenType: ScreenType; } -const ITEM_HEIGHT = SCREEN_HEIGHT * 0.9; - const MomentPost: React.FC<MomentPostProps> = ({item, userXId, screenType}) => { const {userId: loggedInUserId, username: loggedInUsername} = useSelector( (state: RootState) => state.user.user, diff --git a/src/components/moments/MomentPostContent.tsx b/src/components/moments/MomentPostContent.tsx index de31ad55..dcad9aca 100644 --- a/src/components/moments/MomentPostContent.tsx +++ b/src/components/moments/MomentPostContent.tsx @@ -11,7 +11,6 @@ import { getTimePosted, navigateToProfile, normalize, - SCREEN_HEIGHT, SCREEN_WIDTH, } from '../../utils'; import {mentionPartTypes, renderTextWithMentions} from '../../utils/comments'; diff --git a/src/routes/main/MainStackScreen.tsx b/src/routes/main/MainStackScreen.tsx index f6a012d6..3be2ff28 100644 --- a/src/routes/main/MainStackScreen.tsx +++ b/src/routes/main/MainStackScreen.tsx @@ -245,7 +245,6 @@ const MainStackScreen: React.FC<MainStackProps> = ({route}) => { <MainStack.Screen name="InviteFriendsScreen" component={InviteFriendsScreen} - initialParams={{screenType}} options={{ ...headerBarOptions('black', 'Invites'), }} |