pl-fe: move folder

Signed-off-by: Nicole Mikołajczyk <git@mkljczk.pl>
This commit is contained in:
Nicole Mikołajczyk
2025-06-01 07:20:02 +02:00
parent 603da0fa01
commit 8f990f243c
2 changed files with 6 additions and 6 deletions

View File

@ -11,7 +11,7 @@ import HStack from 'pl-fe/components/ui/hstack';
import Icon from 'pl-fe/components/ui/icon';
import PlaceholderEventPreview from 'pl-fe/features/placeholder/components/placeholder-event-preview';
import { useAppSelector } from 'pl-fe/hooks/use-app-selector';
import { useJoinedEvents, useRecentEvents } from 'pl-fe/queries/status-lists/use-events-lists';
import { useJoinedEventsTimeline, useRecentEventsTimeline } from 'pl-fe/queries/timelines/use-events-lists';
import { makeGetStatus } from 'pl-fe/selectors';
const messages = defineMessages({
@ -90,8 +90,8 @@ const EventCarousel: React.FC<IEventCarousel> = ({ statusIds, isLoading, emptyMe
const EventsPage = () => {
const intl = useIntl();
const { data: recentEvents = [], isLoading: recentEventsLoading } = useRecentEvents();
const { data: joinedEvents = [], isLoading: joinedEventsLoading } = useJoinedEvents();
const { data: recentEvents = [], isLoading: recentEventsLoading } = useRecentEventsTimeline();
const { data: joinedEvents = [], isLoading: joinedEventsLoading } = useJoinedEventsTimeline();
return (
<Column label={intl.formatMessage(messages.title)}>

View File

@ -10,7 +10,7 @@ const recentEventsQueryOptions = makePaginatedResponseQueryOptions(
}).then(minifyStatusList),
)();
const useRecentEvents = () => useInfiniteQuery({
const useRecentEventsTimeline = () => useInfiniteQuery({
...recentEventsQueryOptions,
staleTime: 5 * 60 * 1000, // 5 minutes
});
@ -20,9 +20,9 @@ const joinedEventsQueryOptions = makePaginatedResponseQueryOptions(
(client) => client.events.getJoinedEvents().then(minifyStatusList),
)();
const useJoinedEvents = () => useInfiniteQuery({
const useJoinedEventsTimeline = () => useInfiniteQuery({
...joinedEventsQueryOptions,
staleTime: 5 * 60 * 1000, // 5 minutes
});
export { useRecentEvents, useJoinedEvents };
export { useRecentEventsTimeline, useJoinedEventsTimeline };