diff --git a/app/soapbox/features/community-timeline/index.tsx b/app/soapbox/features/community-timeline/index.tsx index a5c2a17fa..3fca53cc5 100644 --- a/app/soapbox/features/community-timeline/index.tsx +++ b/app/soapbox/features/community-timeline/index.tsx @@ -45,6 +45,7 @@ const CommunityTimeline = () => { } divideType='space' diff --git a/app/soapbox/features/preferences/index.tsx b/app/soapbox/features/preferences/index.tsx index 6c620adb1..ebfd02547 100644 --- a/app/soapbox/features/preferences/index.tsx +++ b/app/soapbox/features/preferences/index.tsx @@ -121,17 +121,11 @@ const Preferences = () => { return (
- } - hint={} - > + }> - } - hint={} - > + }> diff --git a/app/soapbox/features/public-timeline/index.tsx b/app/soapbox/features/public-timeline/index.tsx index 1bcd534a5..b62c5495c 100644 --- a/app/soapbox/features/public-timeline/index.tsx +++ b/app/soapbox/features/public-timeline/index.tsx @@ -92,6 +92,7 @@ const CommunityTimeline = () => { } divideType='space' diff --git a/app/soapbox/features/ui/components/timeline.tsx b/app/soapbox/features/ui/components/timeline.tsx index 3b5e71f81..523b7d79a 100644 --- a/app/soapbox/features/ui/components/timeline.tsx +++ b/app/soapbox/features/ui/components/timeline.tsx @@ -16,19 +16,22 @@ const messages = defineMessages({ interface ITimeline extends Omit { /** ID of the timeline in Redux. */ timelineId: string, + /** Settings path to use instead of the timelineId. */ + prefix?: string, } /** Scrollable list of statuses from a timeline in the Redux store. */ const Timeline: React.FC = ({ timelineId, onLoadMore, + prefix, ...rest }) => { const dispatch = useAppDispatch(); const getStatusIds = useCallback(makeGetStatusIds(), []); const lastStatusId = useAppSelector(state => (state.timelines.get(timelineId)?.items || ImmutableOrderedSet()).last() as string | undefined); - const statusIds = useAppSelector(state => getStatusIds(state, { type: timelineId })); + const statusIds = useAppSelector(state => getStatusIds(state, { type: timelineId, prefix })); const isLoading = useAppSelector(state => (state.timelines.get(timelineId) || { isLoading: true }).isLoading === true); const isPartial = useAppSelector(state => (state.timelines.get(timelineId)?.isPartial || false) === true); const hasMore = useAppSelector(state => state.timelines.get(timelineId)?.hasMore === true);