diff --git a/frontend/components/LayoutWrapper.tsx b/frontend/components/LayoutWrapper.tsx index e2dc883c..0f8d4e21 100644 --- a/frontend/components/LayoutWrapper.tsx +++ b/frontend/components/LayoutWrapper.tsx @@ -25,10 +25,6 @@ export default function LayoutWrapper() { return state.onboarding; }); - const makePost = useSelector((state: RootState) => { - return state.makePost; - }); - return ( { diff --git a/frontend/pages/FeedPage.tsx b/frontend/pages/FeedPage.tsx index b6301a77..a605fb4c 100644 --- a/frontend/pages/FeedPage.tsx +++ b/frontend/pages/FeedPage.tsx @@ -15,8 +15,6 @@ import { getPosts } from '../services/users'; import { Post } from '../types/types'; import { useDispatch } from 'react-redux'; import { makePost } from '../reducers/onboarding/onboardingReducer'; -import { useNavigation } from '@react-navigation/native'; -import { MakePostNavigationProp } from '../types/navigationTypes'; const AddSvg = ` @@ -42,8 +40,6 @@ const FeedPage = () => { }); }, []); - const navigation = useNavigation(); - const dispatch = useDispatch(); const startMakePost = () => { diff --git a/frontend/pages/MakePost/PortfolioSummary/PortfolioSummary.tsx b/frontend/pages/MakePost/PortfolioSummary/PortfolioSummary.tsx index afdc96fd..dd00df88 100644 --- a/frontend/pages/MakePost/PortfolioSummary/PortfolioSummary.tsx +++ b/frontend/pages/MakePost/PortfolioSummary/PortfolioSummary.tsx @@ -20,10 +20,6 @@ const PortfolioSummary: React.FC = () => { return state.makePost; }); - const onboarding = useSelector((state: RootState) => { - return state.onboarding; - }); - const dispatch = useDispatch(); const { session } = useSession(); diff --git a/frontend/pages/MakePost/TextBasedPost/TextBasedPost.tsx b/frontend/pages/MakePost/TextBasedPost/TextBasedPost.tsx index 3a801379..77df90c7 100644 --- a/frontend/pages/MakePost/TextBasedPost/TextBasedPost.tsx +++ b/frontend/pages/MakePost/TextBasedPost/TextBasedPost.tsx @@ -17,10 +17,6 @@ import { finishPost } from '../../../reducers/onboarding/onboardingReducer'; const TextBasedPost: React.FC = () => { const navigation = useNavigation(); - const makePost = useSelector((state: RootState) => { - return state.makePost; - }); - const { session } = useSession(); const dispatch = useDispatch(); diff --git a/frontend/pages/MakePost/TradePost/SelectTrade.tsx b/frontend/pages/MakePost/TradePost/SelectTrade.tsx index 4af864dd..a6afac78 100644 --- a/frontend/pages/MakePost/TradePost/SelectTrade.tsx +++ b/frontend/pages/MakePost/TradePost/SelectTrade.tsx @@ -1,7 +1,6 @@ import React from 'react'; -import { View, Text, StyleSheet, TouchableOpacity } from 'react-native'; +import { View, Text, StyleSheet } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialIcons'; -import SmallColorText from '../UtilityTextAbstractions/SmallColorText'; import { useNavigation } from '@react-navigation/native'; import { MakePostNavigationProp } from '../../../types/navigationTypes'; import ColorTrade from './UtilityTradeAbstraction/ColorTrade'; diff --git a/frontend/services/post.ts b/frontend/services/post.ts index 8441de60..bcf21168 100644 --- a/frontend/services/post.ts +++ b/frontend/services/post.ts @@ -1,5 +1,5 @@ -import { Redirect, UserPortfolio } from '../types/types'; -import axios, { AxiosResponse, HttpStatusCode } from 'axios'; +import { Redirect } from '../types/types'; +import axios, { AxiosResponse } from 'axios'; import { API_LINK } from './CommonDocs'; export const createTradePost = async (userId: string, percentData: number, tickerSymbol: string, title: string, description: string): Promise => {