Activity timeline refactoring followup (#5835)

Following https://github.com/twentyhq/twenty/pull/5697, addressing
review
This commit is contained in:
Weiko
2024-06-12 16:21:30 +02:00
committed by GitHub
parent bd22bfce2e
commit ad6547948b
31 changed files with 607 additions and 293 deletions

View File

@ -1,7 +1,7 @@
import styled from '@emotion/styled';
import { isNonEmptyArray } from '@sniptt/guards';
import { FetchMoreLoader } from '@/activities/components/CustomResolverFetchMoreLoader';
import { CustomResolverFetchMoreLoader } from '@/activities/components/CustomResolverFetchMoreLoader';
import { TimelineCreateButtonGroup } from '@/activities/timeline/components/TimelineCreateButtonGroup';
import { EventList } from '@/activities/timelineActivities/components/EventList';
import { useTimelineActivities } from '@/activities/timelineActivities/hooks/useTimelineActivities';
@ -64,7 +64,10 @@ export const TimelineActivities = ({
title="All"
events={timelineActivities ?? []}
/>
<FetchMoreLoader loading={loading} onLastRowVisible={fetchMoreRecords} />
<CustomResolverFetchMoreLoader
loading={loading}
onLastRowVisible={fetchMoreRecords}
/>
</StyledMainContainer>
);
};