diff options
author | Ashm Walia <40498934+ashmgarv@users.noreply.github.com> | 2020-10-18 16:37:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-18 19:37:32 -0400 |
commit | ab7fa09af967e0a8cf2ca53dfb24f8bc8a6886f7 (patch) | |
tree | 898e7aa42529eda91964ac1a18aa1881689554f2 /src/components/taggs/TaggsBar.tsx | |
parent | 79d237f616c37940f5d476eb1dca6b5d05cf148a (diff) |
[TMA 279] Ability to search and view someone's profile (#58)
* Batch one : major changes
* WIP checkpoint
* The one before the final touch
* Probable final touch
* ran yarn lint D:
* linter broke something
* fixed a small bug
* Addressed a small nitpick
* Well abstracted now
Co-authored-by: Ivan Chen <ivan@thetaggid.com>
Diffstat (limited to 'src/components/taggs/TaggsBar.tsx')
-rw-r--r-- | src/components/taggs/TaggsBar.tsx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/components/taggs/TaggsBar.tsx b/src/components/taggs/TaggsBar.tsx index 1022c4fc..933f355d 100644 --- a/src/components/taggs/TaggsBar.tsx +++ b/src/components/taggs/TaggsBar.tsx @@ -10,11 +10,18 @@ const {View, ScrollView, interpolate, Extrapolate} = Animated; interface TaggsBarProps { y: Animated.Value<number>; profileBodyHeight: number; + isProfileView: boolean; } -const TaggsBar: React.FC<TaggsBarProps> = ({y, profileBodyHeight}) => { +const TaggsBar: React.FC<TaggsBarProps> = ({ + y, + profileBodyHeight, + isProfileView, +}) => { const taggs: Array<JSX.Element> = []; for (let i = 0; i < 10; i++) { - taggs.push(<Tagg key={i} style={styles.tagg} />); + taggs.push( + <Tagg key={i} style={styles.tagg} isProfileView={isProfileView} />, + ); } const shadowOpacity: Animated.Node<number> = interpolate(y, { inputRange: [ |