Skip to content

Commit

Permalink
attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
leoRysing committed Apr 17, 2024
1 parent 4e87c0b commit 12ac367
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
11 changes: 6 additions & 5 deletions frontend/components/TrendingUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
import React from 'react';
import {Image, StyleSheet, Text, View} from 'react-native';
import { Trending } from '../types/types';
import { TrendingUp, TrendingDown } from '@mui/icons-material';
import { FontAwesome } from '@expo/vector-icons';

Check failure on line 5 in frontend/components/TrendingUser.tsx

View workflow job for this annotation

GitHub Actions / Lint (20.x)

'FontAwesome' is defined but never used

type TrendingUserProps = {
trending: Trending;
}

const TrendingUser: React.FC<TrendingUserProps> = ({ trending }: TrendingUserProps) => {
console.log(trending)
return (
<View style={styles.container}>
{/* Column for image */}
Expand All @@ -34,14 +35,14 @@ const TrendingUser: React.FC<TrendingUserProps> = ({ trending }: TrendingUserPro


<View style={[styles.column, styles.followersColumn]}>
{
{/* {
trending.day_gain_pct > 0 ?
(
<TrendingUp sx={styles.followersLogo}/>
<FontAwesome name="arrow-trend-up" size={20} color="black"/>
) : (
<TrendingDown sx={styles.followersLogo}/>
<FontAwesome name="arrow-trend-down" size={20} color="black"/>
)
}
} */}
<Text style={styles.followersText}>
{trending.day_gain_pct}%
</Text>
Expand Down
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@clerk/types": "^3.62.1",
"@emotion/styled": "^11.11.5",
"@expo/ngrok": "^2.5.0",
"@expo/vector-icons": "^13.0.0",
"@mui/icons-material": "^5.15.15",
"@mui/material": "^5.15.15",
"@react-native-community/slider": "^4.5.0",
Expand Down
2 changes: 1 addition & 1 deletion frontend/reducers/onboarding/onboardingReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const onboardingSlice = createSlice({
financialGoalsShortTerm: [],
financialGoalsLongTerm: [],
financialLiteracy: [],
isOnboarding: 'onboarding', // 'onboarding', 'normal', 'makingPost'
isOnboarding: 'normal', // 'onboarding', 'normal', 'makingPost'
},
reducers: {
updateFirstName(state, action) {
Expand Down
5 changes: 5 additions & 0 deletions frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1951,6 +1951,11 @@
dependencies:
cross-spawn "^7.0.3"

"@expo/vector-icons@^13.0.0":
version "13.0.0"
resolved "https://registry.yarnpkg.com/@expo/vector-icons/-/vector-icons-13.0.0.tgz#e2989b85e95a82bce216f88cf8fb583ab050ec95"
integrity sha512-TI+l71+5aSKnShYclFa14Kum+hQMZ86b95SH6tQUG3qZEmLTarvWpKwqtTwQKqvlJSJrpFiSFu3eCuZokY6zWA==

"@expo/vector-icons@^14.0.0":
version "14.0.0"
resolved "https://registry.yarnpkg.com/@expo/vector-icons/-/vector-icons-14.0.0.tgz#48ce0aa5c05873b07c0c78bfe16c870388f4de9a"
Expand Down

0 comments on commit 12ac367

Please sign in to comment.