Skip to content

Commit

Permalink
trending update
Browse files Browse the repository at this point in the history
  • Loading branch information
leoRysing committed Apr 17, 2024
1 parent 0d76e59 commit 4e87c0b
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions frontend/components/TrendingUser.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
import React from 'react';
import {Image, StyleSheet, Text, View} from 'react-native';
import { Trending } from '../types/types';
Expand Down Expand Up @@ -35,17 +34,16 @@ const TrendingUser: React.FC<TrendingUserProps> = ({ trending }: TrendingUserPro


<View style={[styles.column, styles.followersColumn]}>

{trending.day_gain_pct > 0 ?
(<Image
source={require("../assets/trend-up-green.png")}
style={styles.followersLogo}
/>) : (<Image
source={require("../assets/trend-down-red.png")}
style={styles.followersLogo}
/>)}
{
trending.day_gain_pct > 0 ?
(
<TrendingUp sx={styles.followersLogo}/>
) : (
<TrendingDown sx={styles.followersLogo}/>
)
}
<Text style={styles.followersText}>
{trending.day_gain_pct}%
{trending.day_gain_pct}%
</Text>
</View>
</View>
Expand Down

0 comments on commit 4e87c0b

Please sign in to comment.