Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelchris committed Dec 30, 2024
1 parent 508f342 commit 3bc1b0a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
10 changes: 1 addition & 9 deletions packages/shared/src/components/feeds/FeedNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@ import dynamic from 'next/dynamic';
import { Tab, TabContainer } from '../tabs/TabContainer';
import { useActiveFeedNameContext } from '../../contexts';
import useActiveNav from '../../hooks/useActiveNav';
import {
useFeeds,
usePlusSubscription,
useViewSize,
ViewSize,
} from '../../hooks';
import { useFeeds, useViewSize, ViewSize } from '../../hooks';
import usePersistentContext from '../../hooks/usePersistentContext';
import {
algorithmsList,
Expand All @@ -32,7 +27,6 @@ import classed from '../../lib/classed';
import { useAuthContext } from '../../contexts/AuthContext';
import { OtherFeedPage } from '../../lib/query';
import { ChecklistViewState } from '../../lib/checklist';
import { useLazyModal } from '../../hooks/useLazyModal';
import useCustomDefaultFeed from '../../hooks/feed/useCustomDefaultFeed';

const OnboardingChecklistBar = dynamic(
Expand Down Expand Up @@ -79,8 +73,6 @@ function FeedNav(): ReactElement {
const scrollClassName = useScrollTopClassName({ enabled: !!featureTheme });
const { feeds } = useFeeds();
const { isCustomDefaultFeed, defaultFeedId } = useCustomDefaultFeed();
const { showPlusSubscription, isPlus } = usePlusSubscription();
const { openModal } = useLazyModal();

const isHiddenOnboardingChecklistView =
onboardingChecklistView === ChecklistViewState.Hidden;
Expand Down
4 changes: 0 additions & 4 deletions packages/shared/src/components/feeds/MobileFeedActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,12 @@ import { LogoPosition } from '../Logo';
import { webappUrl } from '../../lib/constants';
import useCustomDefaultFeed from '../../hooks/feed/useCustomDefaultFeed';
import { getFeedName } from '../../lib/feed';
import { usePlusSubscription } from '../../hooks';
import { useLazyModal } from '../../hooks/useLazyModal';

export function MobileFeedActions(): ReactElement {
const router = useRouter();
const { user } = useAuthContext();
const { streak, isLoading, isStreaksEnabled } = useReadingStreak();
const { isCustomDefaultFeed, defaultFeedId } = useCustomDefaultFeed();
const { isEnrolledNotPlus } = usePlusSubscription();
const { openModal } = useLazyModal();

return (
<div className="flex flex-row justify-between px-4 py-1">
Expand Down

0 comments on commit 3bc1b0a

Please sign in to comment.