diff options
author | Ivan Chen <ivan@tagg.id> | 2021-04-21 15:46:45 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-04-21 15:46:45 -0400 |
commit | 33c172cc31957966b14321520c56816ba044db14 (patch) | |
tree | dd3df697478a19048cd4bf6d0b499a91c1a93eb3 /src | |
parent | b765b41eb0b3443e03ca22269343236d8de1be70 (diff) |
linted
Diffstat (limited to 'src')
-rw-r--r-- | src/components/profile/PublicProfile.tsx | 16 | ||||
-rw-r--r-- | src/components/taggs/TwitterTaggPost.tsx | 17 | ||||
-rw-r--r-- | src/screens/onboarding/PasswordResetRequest.tsx | 2 | ||||
-rw-r--r-- | src/screens/onboarding/legacy/SocialMedia.tsx | 1 |
4 files changed, 14 insertions, 22 deletions
diff --git a/src/components/profile/PublicProfile.tsx b/src/components/profile/PublicProfile.tsx index d2ee8626..b8920351 100644 --- a/src/components/profile/PublicProfile.tsx +++ b/src/components/profile/PublicProfile.tsx @@ -15,17 +15,9 @@ import { deleteUserMomentsForCategory, updateMomentCategories, } from '../../store/actions'; -import { - EMPTY_MOMENTS_LIST, - NO_PROFILE, - NO_USER, -} from '../../store/initialStates'; +import {EMPTY_MOMENTS_LIST, NO_PROFILE} from '../../store/initialStates'; import {RootState} from '../../store/rootreducer'; -import { - CategorySelectionScreenType, - ContentProps, - MomentType, -} from '../../types'; +import {ContentProps, MomentType} from '../../types'; import {moveCategory, normalize, SCREEN_HEIGHT} from '../../utils'; import {TaggPrompt} from '../common'; import {Moment} from '../moments'; @@ -52,10 +44,6 @@ const PublicProfile: React.FC<ContentProps> = ({ userXId ? state.userX[screenType][userXId] : state.momentCategories, ); - const {user: loggedInUser = NO_USER} = useSelector( - (state: RootState) => state.user, - ); - const navigation = useNavigation(); /** diff --git a/src/components/taggs/TwitterTaggPost.tsx b/src/components/taggs/TwitterTaggPost.tsx index b2889e3e..0a6f53d8 100644 --- a/src/components/taggs/TwitterTaggPost.tsx +++ b/src/components/taggs/TwitterTaggPost.tsx @@ -1,12 +1,17 @@ import React from 'react'; -import { Image, Linking, StyleSheet, View } from 'react-native'; -import { Text } from 'react-native-animatable'; +import {Image, Linking, StyleSheet, View} from 'react-native'; +import {Text} from 'react-native-animatable'; import Hyperlink from 'react-native-hyperlink'; import LinearGradient from 'react-native-linear-gradient'; -import { AVATAR_DIM, TAGGS_GRADIENT, TAGG_LIGHT_BLUE, TAGG_LIGHT_BLUE_2 } from '../../constants'; -import { TwitterPostType } from '../../types'; -import { handleOpenSocialUrlOnBrowser, SCREEN_WIDTH } from '../../utils'; -import { DateLabel, PostCarousel } from '../common'; +import { + AVATAR_DIM, + TAGGS_GRADIENT, + TAGG_LIGHT_BLUE, + TAGG_LIGHT_BLUE_2, +} from '../../constants'; +import {TwitterPostType} from '../../types'; +import {handleOpenSocialUrlOnBrowser, SCREEN_WIDTH} from '../../utils'; +import {DateLabel, PostCarousel} from '../common'; interface TwitterTaggPostProps { ownerHandle: string; diff --git a/src/screens/onboarding/PasswordResetRequest.tsx b/src/screens/onboarding/PasswordResetRequest.tsx index 8a891bbb..8f987721 100644 --- a/src/screens/onboarding/PasswordResetRequest.tsx +++ b/src/screens/onboarding/PasswordResetRequest.tsx @@ -21,7 +21,7 @@ import { import {emailRegex, usernameRegex} from '../../constants'; import {OnboardingStackParams} from '../../routes'; import {handlePasswordResetRequest} from '../../services'; -import {BackgroundGradientType, VerificationScreenType} from '../../types'; +import {BackgroundGradientType} from '../../types'; type PasswordResetRequestRouteProp = RouteProp< OnboardingStackParams, diff --git a/src/screens/onboarding/legacy/SocialMedia.tsx b/src/screens/onboarding/legacy/SocialMedia.tsx index e29eae0c..1f98401b 100644 --- a/src/screens/onboarding/legacy/SocialMedia.tsx +++ b/src/screens/onboarding/legacy/SocialMedia.tsx @@ -60,7 +60,6 @@ const SocialMedia: React.FC<SocialMediaProps> = ({route, navigation}) => { const handleNext = () => { navigation.navigate('CategorySelection', { - screenType: CategorySelectionScreenType.Onboarding, user: {userId: userId, username: username}, newCustomCategory: undefined, }); |