diff --git a/apps/mobile/src/components/layouts/views/SafeModalScrollView.tsx b/apps/mobile/src/components/layouts/views/SafeModalScrollView.tsx index d36510a9c..2d92951f1 100644 --- a/apps/mobile/src/components/layouts/views/SafeModalScrollView.tsx +++ b/apps/mobile/src/components/layouts/views/SafeModalScrollView.tsx @@ -17,7 +17,7 @@ export const SafeModalScrollView = (props: SafeModalScrollViewProps) => { const animatedY = useSharedValue(0) const animatedRef = useAnimatedRef() return ( - + ({ scrollViewRef: animatedRef, animatedY }), [animatedRef, animatedY])} > diff --git a/apps/mobile/src/modules/feed/FollowFeed.tsx b/apps/mobile/src/modules/feed/FollowFeed.tsx index 58e9864c0..e5f18108c 100644 --- a/apps/mobile/src/modules/feed/FollowFeed.tsx +++ b/apps/mobile/src/modules/feed/FollowFeed.tsx @@ -25,7 +25,7 @@ import { subscriptionSyncService } from "@/src/store/subscription/store" import type { SubscriptionForm } from "@/src/store/subscription/types" const formSchema = z.object({ - view: z.string(), + view: z.coerce.number(), category: z.string().nullable().optional(), isPrivate: z.boolean().optional(), title: z.string().optional(), @@ -123,8 +123,8 @@ function FollowImpl(props: { feedId: string }) { return ( { const isSelected = +value === +view.view return ( - onChange?.(view.view)} disabled={readOnly} @@ -41,7 +41,7 @@ export const FeedViewSelector = ({ value, onChange, className, readOnly }: Props {view.name} - + ) })} diff --git a/apps/mobile/src/modules/list/FollowList.tsx b/apps/mobile/src/modules/list/FollowList.tsx index d1cc2396b..8bd177463 100644 --- a/apps/mobile/src/modules/list/FollowList.tsx +++ b/apps/mobile/src/modules/list/FollowList.tsx @@ -117,8 +117,8 @@ const Impl = (props: { id: string }) => { }, [isDirty, navigation]) return ( { + setIsLoading(true) const data = Object.fromEntries( Object.entries(_data).filter(([key]) => !key.startsWith(routeParamsKeyPrefix)), ) @@ -308,8 +309,6 @@ const ModalHeaderSubmitButtonImpl = ({ // router.dismiss() // } - setIsLoading(true) - feedSyncServices .fetchFeedById({ url: finalUrl }) .then((feed) => {