diff options
| author | Shravya Ramesh <shravs1208@gmail.com> | 2021-02-19 22:04:46 -0800 |
|---|---|---|
| committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-02-19 22:04:46 -0800 |
| commit | 921cf232551ea6e04bc2d845805f4b59419df085 (patch) | |
| tree | 49aab84f34ca7d244a60affa1a8e111fb7d6aa17 /src/components/taggs/TaggsBar.tsx | |
| parent | 2bb7b351a0e509beb9e6d87364471599af402db2 (diff) | |
white ring on profile screen fixed
Diffstat (limited to 'src/components/taggs/TaggsBar.tsx')
| -rw-r--r-- | src/components/taggs/TaggsBar.tsx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/components/taggs/TaggsBar.tsx b/src/components/taggs/TaggsBar.tsx index c23f56a9..aaf9a531 100644 --- a/src/components/taggs/TaggsBar.tsx +++ b/src/components/taggs/TaggsBar.tsx @@ -20,12 +20,14 @@ interface TaggsBarProps { profileBodyHeight: number; userXId: string | undefined; screenType: ScreenType; + whiteRing: boolean | undefined; } const TaggsBar: React.FC<TaggsBarProps> = ({ y, profileBodyHeight, userXId, screenType, + whiteRing, }) => { let [taggs, setTaggs] = useState<Object[]>([]); let [taggsNeedUpdate, setTaggsNeedUpdate] = useState(true); @@ -61,6 +63,7 @@ const TaggsBar: React.FC<TaggsBarProps> = ({ ); let new_taggs = []; let i = 0; + console.log('whiteRing in taggsbar: ', whiteRing); for (let social of linkedSocials) { new_taggs.push( <Tagg @@ -72,12 +75,12 @@ const TaggsBar: React.FC<TaggsBarProps> = ({ isIntegrated={INTEGRATED_SOCIAL_LIST.indexOf(social) !== -1} setTaggsNeedUpdate={setTaggsNeedUpdate} setSocialDataNeedUpdate={handleSocialUpdate} - screenType={screenType} + whiteRing={whiteRing ? whiteRing : undefined} />, ); i++; } - if (!userXId && screenType !== ScreenType.SuggestedPeople) { + if (!userXId && !whiteRing) { for (let social of unlinkedSocials) { new_taggs.push( <Tagg @@ -89,7 +92,7 @@ const TaggsBar: React.FC<TaggsBarProps> = ({ setSocialDataNeedUpdate={handleSocialUpdate} userXId={userXId} user={user} - screenType={screenType} + whiteRing ={whiteRing ? whiteRing : undefined} />, ); i++; @@ -126,7 +129,7 @@ const TaggsBar: React.FC<TaggsBarProps> = ({ return taggs.length > 0 ? ( <View style={ - screenType === ScreenType.SuggestedPeople + whiteRing ? [styles.spContainer] : [styles.container, {shadowOpacity, paddingTop}] }> |
