aboutsummaryrefslogtreecommitdiff
path: root/src/components/common/SocialIcon.tsx
diff options
context:
space:
mode:
authorShravya Ramesh <shravs1208@gmail.com>2021-02-19 22:04:46 -0800
committerShravya Ramesh <shravs1208@gmail.com>2021-02-19 22:04:46 -0800
commit921cf232551ea6e04bc2d845805f4b59419df085 (patch)
tree49aab84f34ca7d244a60affa1a8e111fb7d6aa17 /src/components/common/SocialIcon.tsx
parent2bb7b351a0e509beb9e6d87364471599af402db2 (diff)
white ring on profile screen fixed
Diffstat (limited to 'src/components/common/SocialIcon.tsx')
-rw-r--r--src/components/common/SocialIcon.tsx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/components/common/SocialIcon.tsx b/src/components/common/SocialIcon.tsx
index 8216b6ff..cb3b926b 100644
--- a/src/components/common/SocialIcon.tsx
+++ b/src/components/common/SocialIcon.tsx
@@ -1,11 +1,10 @@
import React from 'react';
import {Image} from 'react-native';
-import {ScreenType} from '../../types';
interface SocialIconProps {
social: string;
style: object;
- screenType: ScreenType;
+ whiteRing: boolean | undefined;
}
/**
* An image component that returns the <Image> of the icon for a specific social media platform.
@@ -13,12 +12,12 @@ interface SocialIconProps {
const SocialIcon: React.FC<SocialIconProps> = ({
social: social,
style: style,
- screenType,
+ whiteRing,
}) => {
switch (social) {
case 'Instagram':
var icon = require('../../assets/socials/instagram-icon.png');
- if (screenType === ScreenType.SuggestedPeople) {
+ if (whiteRing) {
icon = require('../../assets/socials/instagram-icon-white-bg.png');
}
break;