Fix Profile tab pagination

This commit is contained in:
Bojan Mojsilovic 2024-03-28 13:17:20 +01:00
parent d20836a002
commit 371b55aa44

View File

@ -276,9 +276,12 @@ const ProfileTabs: Component<{
<Note note={note} shorten={true} /> <Note note={note} shorten={true} />
)} )}
</For> </For>
<Paginator loadNextPage={() => { <Paginator
profile?.actions.fetchNextPage(); loadNextPage={() => {
}}/> profile?.actions.fetchNextPage();
}}
isSmall={true}
/>
</Match> </Match>
</Switch> </Switch>
</div> </div>
@ -329,9 +332,12 @@ const ProfileTabs: Component<{
<Note note={reply} shorten={true} /> <Note note={reply} shorten={true} />
)} )}
</For> </For>
<Paginator loadNextPage={() => { <Paginator
profile?.actions.fetchNextRepliesPage(); loadNextPage={() => {
}}/> profile?.actions.fetchNextRepliesPage();
}}
isSmall={true}
/>
</Match> </Match>
</Switch> </Switch>
</div> </div>
@ -364,7 +370,7 @@ const ProfileTabs: Component<{
/> />
</div>} </div>}
</For> </For>
<Paginator loadNextPage={loadMoreFollows}/> <Paginator loadNextPage={loadMoreFollows} isSmall={true} />
</Show> </Show>
</div> </div>
</Tabs.Content> </Tabs.Content>
@ -400,7 +406,7 @@ const ProfileTabs: Component<{
</div> </div>
} }
</For> </For>
<Paginator loadNextPage={loadMoreFollowers}/> <Paginator loadNextPage={loadMoreFollowers} isSmall={true} />
</Show> </Show>
</div> </div>
</Tabs.Content> </Tabs.Content>
@ -475,7 +481,7 @@ const ProfileTabs: Component<{
</A> </A>
} }
</For> </For>
<Paginator loadNextPage={profile?.actions.fetchNextZapsPage}/> <Paginator loadNextPage={profile?.actions.fetchNextZapsPage} isSmall={true} />
</Show> </Show>
</div> </div>
</Tabs.Content> </Tabs.Content>