From 605c70f3696968ee1b4d5bb29f2d19801c315d35 Mon Sep 17 00:00:00 2001 From: Chris Bongers Date: Thu, 2 Jan 2025 15:27:49 +0200 Subject: [PATCH] fix: don't show button on my feed --- .../components/feeds/FeedSettings/FeedSettingsEditHeader.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/shared/src/components/feeds/FeedSettings/FeedSettingsEditHeader.tsx b/packages/shared/src/components/feeds/FeedSettings/FeedSettingsEditHeader.tsx index 0b158dffed..17c9e93c19 100644 --- a/packages/shared/src/components/feeds/FeedSettings/FeedSettingsEditHeader.tsx +++ b/packages/shared/src/components/feeds/FeedSettings/FeedSettingsEditHeader.tsx @@ -11,6 +11,7 @@ import { usePlusSubscription } from '../../../hooks'; import { webappUrl } from '../../../lib/constants'; import { DevPlusIcon } from '../../icons'; import { LogEvent, TargetId } from '../../../lib/log'; +import { FeedType } from '../../../graphql/feed'; const SaveButton = ({ activeView }: { activeView: string }): ReactElement => { const { onSubmit, isSubmitPending, isDirty, onBackToFeed } = useContext( @@ -45,7 +46,7 @@ const SaveButton = ({ activeView }: { activeView: string }): ReactElement => { }; export const FeedSettingsEditHeader = (): ReactElement => { - const { onDiscard, onBackToFeed } = useContext(FeedSettingsEditContext); + const { onDiscard, onBackToFeed, feed } = useContext(FeedSettingsEditContext); const { activeView, setActiveView } = useContext(ModalPropsContext); const isMobile = useViewSizeClient(ViewSize.MobileL); const { isEnrolledNotPlus, logSubscriptionEvent } = usePlusSubscription(); @@ -82,7 +83,7 @@ export const FeedSettingsEditHeader = (): ReactElement => { > Cancel - {isEnrolledNotPlus ? ( + {isEnrolledNotPlus && feed?.type === FeedType.Custom ? (