aboutsummaryrefslogtreecommitdiff
path: root/src/components/common/SocialIcon.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-02-20 12:08:59 -0500
committerIvan Chen <ivan@tagg.id>2021-02-20 12:08:59 -0500
commit8357cea9e510c97ba8816cb6850541509c5d764e (patch)
tree2078369aa878324088e62b998de76e0a5e487819 /src/components/common/SocialIcon.tsx
parentd671ce2a0dfc9d2ca181b5a21769c0cbd3be2fd3 (diff)
parentf4d8c3058ac601b0652f28e4ac5e3a6360b7bbd7 (diff)
Merge branch 'master' into tma644-edit-suggested
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;