aboutsummaryrefslogtreecommitdiff
path: root/src/components/taggs/TaggsBar.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-02-20 12:24:33 -0500
committerIvan Chen <ivan@tagg.id>2021-02-20 12:24:33 -0500
commit82fc3c7ded1022a31cd532d469457d77f9214cc8 (patch)
tree08aeb9ce90be7ca69b56923bab6c34871b3a793a /src/components/taggs/TaggsBar.tsx
parent9db520bf91b9c157ab2c9d2d3696348e031698d2 (diff)
parent4b8130932b943afe9fdf63c611f1897622ab795e (diff)
Merge branch 'master' into tma258-sp-pagination-2
# Conflicts: # src/constants/api.ts # src/screens/suggestedPeople/SuggestedPeopleScreen.tsx # src/services/SuggestedPeopleService.ts
Diffstat (limited to 'src/components/taggs/TaggsBar.tsx')
-rw-r--r--src/components/taggs/TaggsBar.tsx10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/components/taggs/TaggsBar.tsx b/src/components/taggs/TaggsBar.tsx
index c23f56a9..05ee18bb 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);
@@ -72,12 +74,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 +91,7 @@ const TaggsBar: React.FC<TaggsBarProps> = ({
setSocialDataNeedUpdate={handleSocialUpdate}
userXId={userXId}
user={user}
- screenType={screenType}
+ whiteRing={whiteRing ? whiteRing : undefined}
/>,
);
i++;
@@ -126,7 +128,7 @@ const TaggsBar: React.FC<TaggsBarProps> = ({
return taggs.length > 0 ? (
<View
style={
- screenType === ScreenType.SuggestedPeople
+ whiteRing
? [styles.spContainer]
: [styles.container, {shadowOpacity, paddingTop}]
}>