From 4b6faadd4cc0a69b0aad5b44dfe6292635b39f6b Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Tue, 9 Feb 2021 17:11:03 -0800 Subject: changed insta icon + added extra prop for switch --- src/components/common/SocialIcon.tsx | 8 +++++++- src/components/common/SocialLinkModal.tsx | 7 ++++++- 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'src/components/common') diff --git a/src/components/common/SocialIcon.tsx b/src/components/common/SocialIcon.tsx index 3c9deb6d..0cd5d2a7 100644 --- a/src/components/common/SocialIcon.tsx +++ b/src/components/common/SocialIcon.tsx @@ -1,9 +1,11 @@ import React from 'react'; import {Image} from 'react-native'; +import {ScreenType} from '../../types'; interface SocialIconProps { social: string; style: object; + screenType: ScreenType; } /** * An image component that returns the of the icon for a specific social media platform. @@ -11,10 +13,14 @@ interface SocialIconProps { const SocialIcon: React.FC = ({ social: social, style: style, + screenType, }) => { switch (social) { case 'Instagram': - var icon = require('../../assets/socials/instagram-icon.png'); + var icon = require('../../assets/socials/instagram-icon-white-bg.png'); + if (screenType === ScreenType.SuggestedPeople) { + icon = require('../../assets/socials/instagram-icon.png'); + } break; case 'Facebook': var icon = require('../../assets/socials/facebook-icon.png'); diff --git a/src/components/common/SocialLinkModal.tsx b/src/components/common/SocialLinkModal.tsx index d3bc3945..0bd5a0a5 100644 --- a/src/components/common/SocialLinkModal.tsx +++ b/src/components/common/SocialLinkModal.tsx @@ -1,6 +1,7 @@ import React from 'react'; import {Modal, StyleSheet, Text, TouchableOpacity, View} from 'react-native'; import {TextInput} from 'react-native-gesture-handler'; +import { ScreenType } from '../../types'; import {SocialIcon} from '.'; import CloseIcon from '../../assets/ionicons/close-outline.svg'; import {normalize, SCREEN_WIDTH} from '../../utils'; @@ -48,7 +49,11 @@ const SocialLinkModal: React.FC = ({ onPress={onClosePress}> - + {social} Insert your {social.toLowerCase()} username to link your{' '} -- cgit v1.2.3-70-g09d2 From dc2da789ed0f440e0da8020f891bb490536a38fe Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Thu, 11 Feb 2021 13:38:53 -0800 Subject: updated instagram icon --- src/components/common/SocialIcon.tsx | 4 ++-- src/components/taggs/Tagg.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/components/common') diff --git a/src/components/common/SocialIcon.tsx b/src/components/common/SocialIcon.tsx index 0cd5d2a7..8216b6ff 100644 --- a/src/components/common/SocialIcon.tsx +++ b/src/components/common/SocialIcon.tsx @@ -17,9 +17,9 @@ const SocialIcon: React.FC = ({ }) => { switch (social) { case 'Instagram': - var icon = require('../../assets/socials/instagram-icon-white-bg.png'); + var icon = require('../../assets/socials/instagram-icon.png'); if (screenType === ScreenType.SuggestedPeople) { - icon = require('../../assets/socials/instagram-icon.png'); + icon = require('../../assets/socials/instagram-icon-white-bg.png'); } break; case 'Facebook': diff --git a/src/components/taggs/Tagg.tsx b/src/components/taggs/Tagg.tsx index 29b55786..bb450b64 100644 --- a/src/components/taggs/Tagg.tsx +++ b/src/components/taggs/Tagg.tsx @@ -148,7 +148,7 @@ const Tagg: React.FC = ({ {pickTheRightRingHere()} -- cgit v1.2.3-70-g09d2