aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile/ProfileHeader.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@thetaggid.com>2020-11-05 22:13:49 -0500
committerGitHub <noreply@github.com>2020-11-05 22:13:49 -0500
commit96c46ac20f062aaf814f02184ce8c05ffc860a15 (patch)
tree436d9ae34d101f8543d3063b6371c1d44279be1b /src/components/profile/ProfileHeader.tsx
parent1f56aec4deb9001a889a9acbff3107f6c8d5837c (diff)
[TMA-344] Tabs bar margin, Social Taggs margin (#108)
* fixed margin for smaller screen * fixed header avatar * cleaned up code, improved logic * yarn lint * dynamically calculate avatar and header * changed back tint color and use 1% for tabs bar margin * last edit to avatar size Co-authored-by: Husam Salhab <47015061+hsalhab@users.noreply.github.com>
Diffstat (limited to 'src/components/profile/ProfileHeader.tsx')
-rw-r--r--src/components/profile/ProfileHeader.tsx12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/components/profile/ProfileHeader.tsx b/src/components/profile/ProfileHeader.tsx
index f3ef5dfa..0b56a787 100644
--- a/src/components/profile/ProfileHeader.tsx
+++ b/src/components/profile/ProfileHeader.tsx
@@ -5,15 +5,19 @@ import FollowCount from './FollowCount';
import {View, Text, StyleSheet} from 'react-native';
import {SCREEN_HEIGHT, SCREEN_WIDTH} from '../../utils';
import {AuthContext, ProfileContext} from '../../routes/';
-import { ProfilePreviewType } from 'src/types';
+import {ProfilePreviewType} from 'src/types';
type ProfileHeaderProps = {
- isProfileView: boolean,
- numFollowing: number,
+ isProfileView: boolean;
+ numFollowing: number;
numFollowers: number;
};
-const ProfileHeader: React.FC<ProfileHeaderProps> = ({isProfileView, numFollowing, numFollowers}) => {
+const ProfileHeader: React.FC<ProfileHeaderProps> = ({
+ isProfileView,
+ numFollowing,
+ numFollowers,
+}) => {
const {
profile: {name},
} = isProfileView