aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile/ProfileHeader.tsx
diff options
context:
space:
mode:
authorankit-thanekar007 <ankit.thanekar007@gmail.com>2021-04-22 16:00:44 -0700
committerankit-thanekar007 <ankit.thanekar007@gmail.com>2021-04-22 16:00:44 -0700
commitac082ed35d765f7182e95541d8eb9e2d9f033641 (patch)
tree1d38b38e527955481aac1c45de65f6cf7ef600d3 /src/components/profile/ProfileHeader.tsx
parentc740dd5b018e427c23fd41b8dc255df671eabc61 (diff)
Linter Issues
Diffstat (limited to 'src/components/profile/ProfileHeader.tsx')
-rw-r--r--src/components/profile/ProfileHeader.tsx8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/components/profile/ProfileHeader.tsx b/src/components/profile/ProfileHeader.tsx
index 061bbd0d..9dc58501 100644
--- a/src/components/profile/ProfileHeader.tsx
+++ b/src/components/profile/ProfileHeader.tsx
@@ -1,12 +1,10 @@
-import React, {useEffect, useState} from 'react';
+import React, {useState} from 'react';
import {StyleSheet, Text, View} from 'react-native';
import {TouchableOpacity} from 'react-native-gesture-handler';
import {useSelector} from 'react-redux';
import {PROFILE_CUTOUT_TOP_Y} from '../../constants';
-import {BADGE_DATA} from '../../constants/badges';
-import {getSuggestedPeopleProfile} from '../../services';
import {RootState} from '../../store/rootreducer';
-import {ScreenType, UniversityBadge} from '../../types';
+import {ScreenType} from '../../types';
import {normalize} from '../../utils';
import BadgeDetailView from '../common/BadgeDetailView';
import Avatar from './Avatar';
@@ -29,7 +27,7 @@ const ProfileHeader: React.FC<ProfileHeaderProps> = ({
}) => {
const {
profile: {name = '', university_class = 2021, university},
- user: {userId, username: userXName = ''},
+ user: {username: userXName = ''},
} = useSelector((state: RootState) =>
userXId ? state.userX[screenType][userXId] : state.user,
);