Skip to content

Commit

Permalink
Linting Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adammotts committed Apr 18, 2024
1 parent c525492 commit 97752dc
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 20 deletions.
4 changes: 0 additions & 4 deletions frontend/components/LayoutWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ export default function LayoutWrapper() {
return state.onboarding;
});

const makePost = useSelector((state: RootState) => {
return state.makePost;
});

return (
<NavigationContainer>
{
Expand Down
4 changes: 0 additions & 4 deletions frontend/pages/FeedPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
Expand All @@ -42,8 +40,6 @@ const FeedPage = () => {
});
}, []);

const navigation = useNavigation<MakePostNavigationProp>();

const dispatch = useDispatch();

const startMakePost = () => {
Expand Down
4 changes: 0 additions & 4 deletions frontend/pages/MakePost/PortfolioSummary/PortfolioSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 0 additions & 4 deletions frontend/pages/MakePost/TextBasedPost/TextBasedPost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ import { finishPost } from '../../../reducers/onboarding/onboardingReducer';
const TextBasedPost: React.FC = () => {
const navigation = useNavigation<MakePostNavigationProp>();

const makePost = useSelector((state: RootState) => {
return state.makePost;
});

const { session } = useSession();

const dispatch = useDispatch();
Expand Down
3 changes: 1 addition & 2 deletions frontend/pages/MakePost/TradePost/SelectTrade.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
4 changes: 2 additions & 2 deletions frontend/services/post.ts
Original file line number Diff line number Diff line change
@@ -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<Redirect> => {
Expand Down

0 comments on commit 97752dc

Please sign in to comment.