diff options
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: [ |