Skip to content

Commit

Permalink
cleanup (#921)
Browse files Browse the repository at this point in the history
  • Loading branch information
gkasdorf committed Aug 1, 2023
1 parent 1c862cc commit 6ba8554
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 73 deletions.
5 changes: 1 addition & 4 deletions src/components/screens/Feed/components/FeedView.tsx
Expand Up @@ -6,7 +6,6 @@ import {
import { FlashList, ListRenderItemInfo } from "@shopify/flash-list";
import { PostView } from "lemmy-js-client";
import { HStack, View } from "@src/components/common/Gluestack";
import { useAppSelector } from "@root/store";
import React, {
useCallback,
useEffect,
Expand All @@ -18,7 +17,6 @@ import { StyleSheet } from "react-native";
import { DrawerNavigationProp } from "@react-navigation/drawer";
import { useRoute } from "@react-navigation/core";
import { ExtensionType, getLinkInfo } from "@src/helpers/LinkHelper";
import { selectFeed } from "@src/slices/feed/feedSlice";
import {
useFeedCommunityName,
useFeedListingType,
Expand Down Expand Up @@ -91,7 +89,6 @@ function FeedView({ header }: FeedViewProps) {
const { key } = useRoute();

// Global state props
const { dropdownVisible } = useAppSelector(selectFeed);
const compactView = useSettingsStore((state) => state.settings.compactView);

const posts = useFeedPosts(key);
Expand Down Expand Up @@ -146,7 +143,7 @@ function FeedView({ header }: FeedViewProps) {
),
});
}
}, [community, dropdownVisible, sortType, compactView]);
}, [community, sortType, compactView]);

useEffect(() => {
flashList?.current?.scrollToOffset({
Expand Down
67 changes: 0 additions & 67 deletions src/slices/feed/feedSlice.ts

This file was deleted.

2 changes: 0 additions & 2 deletions store.ts
Expand Up @@ -2,7 +2,6 @@ import { configureStore } from "@reduxjs/toolkit";
import { TypedUseSelectorHook, useDispatch, useSelector } from "react-redux";
import { postSlice } from "./src/slices/post/postSlice";
import { newCommentSlice } from "./src/slices/comments/newCommentSlice";
import feedSlice from "./src/slices/feed/feedSlice";
import siteSlice from "./src/slices/site/siteSlice";
import toastSlice from "./src/slices/toast/toastSlice";
import editCommentSlice from "./src/slices/comments/editCommentSlice";
Expand All @@ -12,7 +11,6 @@ const store = configureStore({
reducer: {
post: postSlice.reducer,
newComment: newCommentSlice.reducer,
feed: feedSlice,
site: siteSlice,
toast: toastSlice,
editComment: editCommentSlice,
Expand Down

0 comments on commit 6ba8554

Please sign in to comment.