Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions frontend/components/Feed/FeedTopBar.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { useNavigation } from '@react-navigation/native';
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
// import FeedPage from '../../pages/FeedPage';
// import Follow from '../../pages/Follow';
import FeedPage from '../../pages/FeedPage';
import Follow from '../../pages/Follow';
import { AuthNavigationProp } from '../../types/navigationTypes';

type FeedBarProps = {
Expand All @@ -14,12 +14,10 @@ const FeedTopBar: React.FC<FeedBarProps> = ({ tab, setTab }) => {
const navigation = useNavigation<AuthNavigationProp>();

const handleButtonPress = () => {
setTab('Explore')
navigation.navigate('Feed');
};

const handleButtonPress2 = () => {
setTab('Explore')
navigation.navigate('Follow');
};

Expand Down
2 changes: 0 additions & 2 deletions frontend/components/Feed/Info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,4 @@ const Info: React.FC<PostProps> = ({ type, company, price, percent }) => {
}
};

// Define the styles for the component

export default Info;
8 changes: 4 additions & 4 deletions frontend/components/Feed/PostNew.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ const PostNew: React.FC<PostProps> = ({ post }) => {
{post.num_data < 250 ? (
<Info
type={1}
company={post.ticker_symbol} //post.ticker_symbol
price={post.num_data} //post.num_data
company={post.ticker_symbol}
price={post.num_data}
percent={17}
/>
) : (
<Info
type={2}
company={post.ticker_symbol} //post.ticker_symbol
price={post.num_data} //post.num_data
company={post.ticker_symbol}
price={post.num_data}
percent={17}
/>
)}
Expand Down
Loading